gcc/gcc.git
8 years ago2010-10-08 Thomas Quinot <quinot@adacore.com> trunk origin/HEAD origin/trunk
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://gcc.gnu.org/svn/gcc/trunk@165154 138bc75d-0d04-0410-961f-82ee72b054a4

8 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://gcc.gnu.org/svn/gcc/trunk@165153 138bc75d-0d04-0410-961f-82ee72b054a4

8 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://gcc.gnu.org/svn/gcc/trunk@165152 138bc75d-0d04-0410-961f-82ee72b054a4

8 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://gcc.gnu.org/svn/gcc/trunk@165151 138bc75d-0d04-0410-961f-82ee72b054a4

8 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://gcc.gnu.org/svn/gcc/trunk@165150 138bc75d-0d04-0410-961f-82ee72b054a4

8 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://gcc.gnu.org/svn/gcc/trunk@165149 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
froydnj [Fri, 8 Oct 2010 01:47:33 +0000 (01:47 +0000)]
* config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
m68hc11_print_operand_address.

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

8 years ago * include/std/future: Enable allocator support.
redi [Fri, 8 Oct 2010 01:06:27 +0000 (01:06 +0000)]
* 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.

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

8 years ago * builtins.c (rewrite_call_expr): Move code to...
froydnj [Fri, 8 Oct 2010 01:06:14 +0000 (01:06 +0000)]
* 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.

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

8 years ago * lto.c (lto_balanced_map): Fix accounting of program size.
hubicka [Fri, 8 Oct 2010 00:50:24 +0000 (00:50 +0000)]
* lto.c (lto_balanced_map): Fix accounting of program size.

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

8 years ago2010-10-08 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Fri, 8 Oct 2010 00:44:12 +0000 (00:44 +0000)]
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.

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

8 years agoDaily bump.
gccadmin [Fri, 8 Oct 2010 00:18:56 +0000 (00:18 +0000)]
Daily bump.

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

8 years agoIn gcc/testsuite/:
nicola [Thu, 7 Oct 2010 22:34:50 +0000 (22:34 +0000)]
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.

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

8 years agoIn gcc/testsuite/:
nicola [Thu, 7 Oct 2010 22:26:43 +0000 (22:26 +0000)]
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.

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

8 years ago PR libstdc++/45841
hp [Thu, 7 Oct 2010 21:46:51 +0000 (21:46 +0000)]
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.

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

8 years ago * testsuite/libstdc++-dg/conformance.exp: Apply
hp [Thu, 7 Oct 2010 21:44:36 +0000 (21:44 +0000)]
* testsuite/libstdc++-dg/conformance.exp: Apply
check_v3_target_fileio as a gate for tests in
subdirectories matching the substring _filebuf.

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

8 years ago * config.host: Update copyright year.
davek [Thu, 7 Oct 2010 21:04:47 +0000 (21:04 +0000)]
* config.host: Update copyright year.

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

8 years agoChangeLog:
davek [Thu, 7 Oct 2010 20:28:59 +0000 (20:28 +0000)]
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.

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

8 years agoMove enum unwind_info_type from target.h to coretypes.h.
rth [Thu, 7 Oct 2010 20:03:13 +0000 (20:03 +0000)]
Move enum unwind_info_type from target.h to coretypes.h.

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

8 years agoFixup botched sync of toplevel configure from src.
rwild [Thu, 7 Oct 2010 19:26:41 +0000 (19:26 +0000)]
Fixup botched sync of toplevel configure from src.

/:
Sync from src:
* configure.ac (v850 support): Remove target-libgloss from
noconfigdirs.
* configure: Regenerate.

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

8 years agoIn gcc/:
nicola [Thu, 7 Oct 2010 18:37:43 +0000 (18:37 +0000)]
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.

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

8 years ago2010-10-07 Janus Weil <janus@gcc.gnu.org>
janus [Thu, 7 Oct 2010 17:35:18 +0000 (17:35 +0000)]
2010-10-07  Janus Weil  <janus@gcc.gnu.org>

PR fortran/45933
* resolve.c (resolve_typebound_function): Use correct declared type
for type-bound operators.

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

PR fortran/45933
* gfortran.dg/typebound_operator_5.f03: New.

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

8 years agoIn gcc/cp/:
nicola [Thu, 7 Oct 2010 17:17:22 +0000 (17:17 +0000)]
In gcc/cp/:
2010-10-07  Nicola Pero  <nicola@nicola.brainstorm.co.uk>

        Merge from apple/trunk branch on FSF servers.

        2006-04-26  Fariborz Jahanian <fjahanian@apple.com>

        Radar 4508851
        * parser.c (cp_parser_objc_interstitial_code): Recognize
        and parse RID_NAMESPACE keyword.

In gcc/testsuite/:
2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>

        Merge from 'apple/trunk' branch on FSF servers.

        2006-04-26  Fariborz Jahanian <fjahanian@apple.com>

        Radar 4508851
        * obj-c++.dg/method-namespace-1.mm: New.

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

8 years ago2010-10-07 Martin Jambor <mjambor@suse.cz>
jamborm [Thu, 7 Oct 2010 16:15:46 +0000 (16:15 +0000)]
2010-10-07  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c (struct access): New field grp_assignment_write.
(dump_access): Dump grp_assignment_write.
(build_accesses_from_assign): Set grp_assignment_write.
(sort_and_splice_var_accesses): Aggregate grp_assignment_write.
(mark_read_status): Renamed to mark_rw_status, individual values
renamed too.
(analyze_access_subtree): Changed type of mark_write to
mark_read_status.  Fixed propagating of mark_read and
mark_write.  Changed benefit estimate.  Updated comment.

* testsuite/gcc.dg/tree-ssa/sra-11.c: New test.

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

8 years agogcc/
belagod [Thu, 7 Oct 2010 16:07:21 +0000 (16:07 +0000)]
gcc/

2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>

* tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
check for vectype_out returned by get_vectype_for_scalar_type().

testsuite/

2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>

* gcc.dg/vect/pr45847.c: New test.

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

8 years ago2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
belagod [Thu, 7 Oct 2010 16:00:06 +0000 (16:00 +0000)]
2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>

PR target/45805
        * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
        constraint, add register specifier in instruction template.
        (neon_vec_pack_trunc_<mode>): Likewise.
        (neon_vec_<US>mult_<mode>): Add register specifier to
        instruction template.

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

8 years agofix for targets with different long and ptr sizes.
iains [Thu, 7 Oct 2010 15:28:06 +0000 (15:28 +0000)]
fix for targets with different long and ptr sizes.

       * objc.dg/proto-lossage-4.m: Use intptr_t instead of long type.

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

8 years ago2010-10-07 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 7 Oct 2010 15:00:18 +0000 (15:00 +0000)]
2010-10-07  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45732
* gcc.dg/torture/pr45732.c: New testcase.

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

8 years ago * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
davek [Thu, 7 Oct 2010 14:44:47 +0000 (14:44 +0000)]
* config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
cygwin2.o.
(cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
(extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
* config/i386/t-cygwin (cygwin1.o): Delete build rule.
(cygwin2.o): Likewise.
* config/i386/cygwin1.c: Delete file.
* config/i386/cygwin2.c: Likewise.
* config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
make all {%!mno-cygwin} ones unconditional.
(STARTFILE_SPEC): Likewise.
(REAL_LIBGCC_SPEC): Likewise.
(LIB_SPEC): Likewise.
(CXX_WRAP_SPEC): Likewise.
(LINK_SPEC): Likewise.
(CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
(CYGWIN_MINGW_SUBDIR_LEN): Likewise.
(cygwin_gplusplus_include_dir): Delete now-unused array.
(GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
(cygwin_gplusplus_tool_include_dir): Delete now-unused array.
(GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
(cygwin_gplusplus_backward_include_dir): Delete now-unused array.
(GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
(cygwin_local_include_dir): Delete now-unused array.
(LOCAL_INCLUDE_DIR): Don't redefine to point to it.
(cygwin_cross_include_dir): Delete now-unused array.
(CROSS_INCLUDE_DIR): Don't redefine to point to it.
(cygwin_tool_include_dir): Delete now-unused array.
(TOOL_INCLUDE_DIR): Don't redefine to point to it.
(cygwin_standard_include_dir): Delete now-unused array.
(STANDARD_INCLUDE_DIR): Don't redefine to point to it.
(GEN_CVT_ARRAY): Delete now-unused macro definition.
(cvt_to_mingw): Delete now-unused array.
(mingw_scan): Remove prototype of deleted function.
(GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
* config/i386/cygming.opt (mcygwin): Delete target-specific option.
* doc/invoke.texi (-mcygwin): Don't document removed option.
(-mno-cygwin): Likewise.

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

8 years agogcc/testsuite:
iains [Thu, 7 Oct 2010 14:40:33 +0000 (14:40 +0000)]
gcc/testsuite:

* objc.dg/foreach-1.m: Adjust for -fnext-runtime compatibility.
* objc.dg/foreach-2.m: Likewise.
* objc.dg/foreach-3.m: Likewise.
* objc.dg/foreach-4.m: Likewise.
* objc.dg/foreach-5.m: Likewise.
* objc.dg/foreach-6.m: Likewise.
* objc.dg/foreach-7.m: Likewise.
* objc.dg/objc-foreach-4.m: Likewise.
* objc.dg/objc-foreach-5.m: Likewise.

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

8 years ago2010-10-07 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 7 Oct 2010 14:36:38 +0000 (14:36 +0000)]
2010-10-07  Richard Guenther  <rguenther@suse.de>

* machmode.h (mode_for_vector): Declare.
* stor-layout.c (mode_for_vector): New function, split out from ...
(layout_type): ... here.
* tree-vectorizer.h (current_vector_size): Declare.
* tree-vect-stmts.c (perm_mask_for_reverse): Check if the
mask vector type is available.
(get_vectype_for_scalar_type): Rename to ...
(get_vectype_for_scalar_type_and_size): ... this.  Get a vector
size argument.
(get_vectype_for_scalar_type): New wrapper around
get_vectype_for_scalar_type_and_size using current_vector_size.
(get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
* tree-vect-loop.c (vect_analyze_loop_2): Split out core part
of vect_analyze_loop here.
(vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
* tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
to autodetect.
* config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
V8SF to V8SI conversion builtin.

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

8 years ago2010-10-07 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 7 Oct 2010 14:35:38 +0000 (14:35 +0000)]
2010-10-07  Richard Guenther  <rguenther@suse.de>

* target.def (autovectorize_vector_sizes): New target hook.
* targhooks.c (default_autovectorize_vector_sizes): New function.
* targhooks.h (default_autovectorize_vector_sizes): Declare.
* doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
Document.
* doc/tm.texi: Update.
* config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
(TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.

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

8 years ago2010-10-07 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 7 Oct 2010 14:34:44 +0000 (14:34 +0000)]
2010-10-07  Richard Guenther  <rguenther@suse.de>

* target.def (units_per_simd_word): Rename to ...
(preferred_simd_mode): ... this.  Return mode instead of size.
* targhooks.c (default_units_per_simd_word): Rename to ...
(default_preferred_simd_mode): ... this.  Return word_mode.
* targhooks.h (default_preferred_simd_mode): Declare.
* config/arm/arm.c (arm_units_per_simd_word): Rename to ...
(arm_preferred_simd_mode): ... this.  Re-implement.
* config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
(ix86_preferred_simd_mode): ... this.  Re-implement.
* config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
(sparc_preferred_simd_mode): ... this.  Re-implement.
* config/mips/mips.c (mips_units_per_simd_word): Rename to ...
(mips_preferred_simd_mode): ... this.  Re-implement.
* config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
(rs6000_preferred_simd_mode): ... this.  Re-implement.
* tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
* doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
(TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
* doc/tm.texi: Update.

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

8 years ago2010-10-07 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 7 Oct 2010 14:32:20 +0000 (14:32 +0000)]
2010-10-07  Richard Guenther  <rguenther@suse.de>

PR middle-end/45869
* tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
of pointers.

* gcc.dg/torture/pr45869.c: New testcase.

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

8 years agovec-ify ObjC* build_objc_method_call()
iains [Thu, 7 Oct 2010 14:22:27 +0000 (14:22 +0000)]
vec-ify ObjC* build_objc_method_call()

gcc/objc:
* objc-act.c (build_objc_method_call): Replace calls to
build_function_call () with the VEC equivalent.  Construct parameter
lists as VECs.

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

8 years agodo not emit bogus set-not-used warnings for objc* entities used as message receivers.
iains [Thu, 7 Oct 2010 14:05:24 +0000 (14:05 +0000)]
do not emit bogus set-not-used warnings for objc* entities used as message receivers.

gcc/objc:
* objc-act.c (objc_build_message_expr):  Call mark_exp_read () to signal that
the receiver has been used.
gcc/testsuite:
* objc.dg/set-not-used-1.m: New
* obj-c++.dg/set-not-used-1.mm: New.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 13:59:38 +0000 (13:59 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
* gcc-interface/Make-lang.in: Update dependencies.

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

* sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
unit, if the type of the formal is declared in a parent unit and is not
a formal itself, the actual must be located from an enclosing parent
instance by normal visibility.

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

* sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
indicator is illegal for an uninitialized allocator.

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

8 years agofix cut & paste error in cp/parser and add testscases in case of fture error.
iains [Thu, 7 Oct 2010 13:51:38 +0000 (13:51 +0000)]
fix cut & paste error in cp/parser and add testscases in case of fture error.

gcc/cp:

parser.c (cp_parser_objc_method_tail_params_opt): Peek new token after
finding ellipsis, before checking for attributes.

testsuite:

* objc.dg/attributes/method-attribute-3.m: New.
* obj-c++.dg/attributes/method-attribute-3.mm: New.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 13:26:02 +0000 (13:26 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* sem_prag.adb (Analyze_Attribute_Definition_Clause, case
Component_Size): Complete previous change.

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

* scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
even for keywords, to avoid having the checksum to depend on the Ada
version.

2010-10-07  Gary Dismukes  <dismukes@adacore.com>

* sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
exp_ch3.adb: Minor reformatting.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 13:21:42 +0000 (13:21 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
Component_Size): It is now illegal to give an incorrect component size
clause in the case of aliased or atomic components.
* sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
an effective pragma Pack in the case of aliased or atomic components.

2010-10-07  Steve Baird  <baird@adacore.com>

* exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
in the case of a violation of an active No_Task_Hierarchy restriction.

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

* sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
type is non-limited, an actual for it cannot be limited.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 13:06:22 +0000 (13:06 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* einfo.ads (No_Pool_Assigned): Update documentation.
* sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
Storage_Size): We only set No_Pool_Assigned if the expression is a
static constant and zero.
* sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
should be an error not a warning.

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

* exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
where an aggregate in an assignment can be built directly into the
target, and does not require the creation of a temporary that may
overflow the stack.

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

* sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
in a record aggregate can correspond to several components of
anonymous access types, as long as the designated subtypes match.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 12:59:00 +0000 (12:59 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
spelling parametrize(d) => parameterize(d).

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 12:52:01 +0000 (12:52 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* sem_ch12.adb: Add comment.
* sem_ch6.adb: Minor reformatting.

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

8 years ago * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
amodra [Thu, 7 Oct 2010 12:47:52 +0000 (12:47 +0000)]
* config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
rather than sign extension by hand.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 12:45:48 +0000 (12:45 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
Pexp to Pf_Rec constants
(P_Subprogram): Expression is always enclosed in parentheses
* par.adb (Pf_Rec): add Pexp flag for parametrized expression
* sinfo.ads (N_Parametrized_Expression): Expression must be in parens

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

* sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
checks on functions that return an abstract type or have a controlling
result whose designated type is an abstract type.
(Check_Private_Overriding): Implement Ada2012 checks on functions
declared in the private part, if an abstract type is involved.
* sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
reject a generic function that returns an abstract type.
* exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
function has a controlling access result, check that the tag of the
return value matches the designated type of the return expression.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 12:37:10 +0000 (12:37 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* par-ch6.adb: Fix error in handling of parametrized expressions.
* par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
mode.
(P_Simple_Expression): Better message for qualified expression prefix
* s-crc32.adb: Minor reformatting.
* exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
storage pool (this test is moved to Sem_Intr).
* sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
empty storage pool, moved here from Exp_Intr and made into error.
(Check_Intrinsic_Call): Remove assumption in generating not-null free
warning that the name of the instantiation is Free.
* sinput.adb (Tree_Read): Document use of illegal free call allowed in
GNAT mode.
* types.ads: Remove storage size clauses from big types (since we may
need to do deallocations, which are now illegal for empty pools).

2010-10-07  Sergey Rybin  <rybin@adacore.com>

* gnat_ugn.texi: Add missing word.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 12:33:30 +0000 (12:33 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* exp_util.adb (Insert_Actions): Add handling of
N_Parametrized_Expression.
* par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
* sem.adb: Add entry for N_Parametrized_Expression
* sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
* sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
* sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
* sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
* par-ch4.adb: Minor reformatting.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 12:24:31 +0000 (12:24 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* scng.adb (Skip_Other_Format_Characters): New procedure
(Start_Of_Wide_Character): New procedure
(Scan): Use Start_Of_Wide_Character where appropriate
(Scan): Improve error message for other_format chars in identifier
(Scan): Allow other_format chars between tokens

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

* exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
Add missing support for explicit dereferences.

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

* par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.

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

8 years ago * vi.po: New.
jsm28 [Thu, 7 Oct 2010 11:56:35 +0000 (11:56 +0000)]
* vi.po: New.

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

8 years ago2010-10-07 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 7 Oct 2010 11:23:07 +0000 (11:23 +0000)]
2010-10-07  Paolo Carlini  <paolo.carlini@oracle.com>

* include/bits/locale_facets_nonio.tcc (time_get<>::
_M_extract_via_format): Tighten somewhat error checking.
* testsuite/22_locale/time_get/get_time/char/6.cc: New.
* testsuite/22_locale/time_get/get_time/wchar_t/6.cc: Likewise.

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

8 years ago * lto.c (lto_balanced_map): Do not produce empty partitions.
hubicka [Thu, 7 Oct 2010 11:18:28 +0000 (11:18 +0000)]
* lto.c (lto_balanced_map): Do not produce empty partitions.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 10:59:32 +0000 (10:59 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
* sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
Exp_Util.Fully_Qualified_Name_String.

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

* rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
* sem_res.adb (Resolve_Call): A call to
Ada.Real_Time.Timing_Events.Set_Handler violates restriction
No_Relative_Delay (AI-0211).

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

* sem_ch10.adb: Small change in error message.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 10:54:11 +0000 (10:54 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* tbuild.ads: Minor reformatting.

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

8 years ago PR middle-end/45926
hubicka [Thu, 7 Oct 2010 10:52:34 +0000 (10:52 +0000)]
PR middle-end/45926
* ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.

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

8 years ago2010-10-07 Mikael Morin <mikael@gcc.gnu.org>
mikael [Thu, 7 Oct 2010 10:46:58 +0000 (10:46 +0000)]
2010-10-07  Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/45916
Revert revision 165026:
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* decl.c (match_procedure_in_type): Assertify if conditions.

2010-10-07  Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/45916
* gfortran.dg/generic_typebound_operator_1.f90: New test.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 10:35:03 +0000 (10:35 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting

2010-10-07  Arnaud Charlet  <charlet@adacore.com>

* exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.

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

8 years ago2010-10-07 Richard Guenther <rguenther@suse.de>
rguenth [Thu, 7 Oct 2010 09:51:52 +0000 (09:51 +0000)]
2010-10-07  Richard Guenther  <rguenther@suse.de>

PR bootstrap/45914
* configure.ac: Fix typo.
* configure: Regenerated.

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

8 years agoTurn PR_SET_NAME check into link check
ak [Thu, 7 Oct 2010 09:34:50 +0000 (09:34 +0000)]
Turn PR_SET_NAME check into link check

Fixes cross compilation for libiberty after my change

libiberty/

2010-10-07  Andi Kleen <ak@linux.intel.com>

* configure: Regenerate.
* configure.ac: Turn PR_SET_NAME check into link check.

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

8 years ago2010-10-07 Vincent Celier <celier@adacore.com>
charlet [Thu, 7 Oct 2010 09:27:50 +0000 (09:27 +0000)]
2010-10-07  Vincent Celier  <celier@adacore.com>

        * gnatcmd.adb (Check_Files): When looking for the .ci file for a
        binder generated file, look for both b~xxx and b__xxx as gprbuild
        always uses b__ as the prefix of such files.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 09:26:27 +0000 (09:26 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* sem_res.adb: Minor reformatting

2010-10-07  Olivier Ramonat  <ramonat@adacore.com>

* gnat_ugn.texi: Minor editing.
* opt.ads: Document that scripts rely on specific formats in opt.ads

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

* a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
(To_Upper_Case): Fix to be inverse of To_Lower_Case
* a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
(To_Upper_Case): Fix to be inverse of To_Lower_Case

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

* a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
* impunit.adb: Add entries for a-wichha/a-zchhan
* Makefile.rtl: Add entries for a-wichha/a-zchhan

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

* make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
* makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
replaced source, check that none of the replaced sources are in the
dependencies.
* makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
* prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
replaced with a source with a different file name, put it in the hash
table Replaced_Sources.
(Add_Source): Call Remove_Source with Data.Tree. If there is at least
one replaced source, check if it has the same file name as the current
source; if it has, remove it from the hash table Replaced_Sources.
* prj.adb (Reset): Reset hash table Tree.Replaced_Sources
* prj.ads (Replaced_Source_HTable): New hash table
(Project_Tree_Data): New components Replaced_Sources and
Replaced_Source_Number.

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

* sem_elab.adb (Check_A_Call): After inserting elaboration check, set
proper flag to prevent a double elaboration check on the same call.
* exp_util.adb (Insert_Actions): If the enclosing node is an
Expression_With_Actions and it has been analyzed already, find
insertion point further up in the tree.

2010-10-07  Hristian Kirtchev  <kirtchev@adacore.com>

* sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
local variables. Remove the general restriction which prohibits the
application of record rep clauses to Unchecked_Union types. Add Ada
2012 check to detect improper naming of an Unchecked_Union
discriminant in record rep clause.
* sem_prag.adb: Add with and use clause for Exp_Ch7.
(Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
type to all invocations of Check_Component and Check_Variant.
(Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
Rewritten.  Add Ada 2012 check to detect improper use of formal
private types and private extensions as component types of an
Unchecked_Union declared inside a generic body.
(Check_Variant): Add formal parameter UU_Typ. Propagate the
Unchecked_Union type to all calls of Check_Component. Signal that the
current component comes from the variant part of an Unchecked_Union
type.
(Inside_Generic_Body): New routine.

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

* exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
equality operation for a record component, verify that both formals
have the same type, and the result type is boolean.

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

* gnatcmd.adb (Check_Files): When looking for the .ci file for a
binder generated file, look for both b~xxx and b__xxx as gprbuild
always uses b__ as the prefix of such files.

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

8 years ago2010-10-07 Thomas Quinot <quinot@adacore.com>
charlet [Thu, 7 Oct 2010 09:16:06 +0000 (09:16 +0000)]
2010-10-07  Thomas Quinot  <quinot@adacore.com>

* sem_res.adb: Minor reformatting.

2010-10-07  Arnaud Charlet  <charlet@adacore.com>

* debug.adb: Update -gnatd.J documentation.

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

* gnat_rm.texi: Document handling of invalid values
* s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
to match new spec.
(UTF_To_Upper_Case): New function.

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

8 years ago2010-10-07 Robert Dewar <dewar@adacore.com>
charlet [Thu, 7 Oct 2010 09:12:36 +0000 (09:12 +0000)]
2010-10-07  Robert Dewar  <dewar@adacore.com>

* sem_attr.adb: Minor reformatting.
* einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
* itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
properly.
* lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
non-Ada 2012 mode.
* opt.ads (Warn_On_Ada_2012_Compatibility): New flag
* sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
* sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
flag.
* sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
argument.
* sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
* sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
same as 2005 flag.

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

* a-tags.ads: Use new support for pragma Ada_2012 with function
Type_Is_Abstract.

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

8 years ago2010-10-07 Ed Schonberg <schonberg@adacore.com>
charlet [Thu, 7 Oct 2010 09:08:36 +0000 (09:08 +0000)]
2010-10-07  Ed Schonberg  <schonberg@adacore.com>

* par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
sequence of statements.

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

* gnatcmd.adb (Check_Files): Only add a .ci files if it exists

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

* a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
* rtsfind.ads (RE_Type_Is_Abstract): New entity.
* exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.

2010-10-07  Arnaud Charlet  <charlet@adacore.com>

* sem_ch12.adb (Mark_Context): Removed, no longer needed.
(Analyze_Package_Instantiation): No longer analyze systematically a
generic body in CodePeer mode.
* freeze.adb, sem_attr.adb: Update comments.

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

8 years ago2010-10-07 Jonathan Wakely <jwakely.gcc@gmail.com>
redi [Thu, 7 Oct 2010 00:19:18 +0000 (00:19 +0000)]
2010-10-07  Jonathan Wakely  <jwakely.gcc@gmail.com>

PR libstdc++/45924
* include/std/functional (_Bind_result::operator()): Do not expand
template parameter pack in forward call.
* testsuite/20_util/bind/45924.cc: New.

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

8 years agoDaily bump.
gccadmin [Thu, 7 Oct 2010 00:18:09 +0000 (00:18 +0000)]
Daily bump.

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

8 years ago PR libstdc++/45924
redi [Thu, 7 Oct 2010 00:17:24 +0000 (00:17 +0000)]
PR libstdc++/45924
* include/std/functional (_Bind_result::operator()): Do not expand
template parameter pack in forward call.
* testsuite/20_util/bind/45924.cc: New.

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

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

PR fortran/45889
* gfortran.dg/alloc_comp_constraint_6.f90: New test.

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

8 years ago2010-10-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Wed, 6 Oct 2010 22:38:30 +0000 (22:38 +0000)]
2010-10-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/45889
* resolve.c (resolve_transfer): Use expression inside parenthesis to
find acutal component to be transgferred.

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

8 years agoIn gcc/cp/:
nicola [Wed, 6 Oct 2010 22:07:08 +0000 (22:07 +0000)]
In gcc/cp/:
2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>

        Merge from apple/trunk branch on FSF servers.
        * cp-tree.def: Added AT_ENCODE_EXPR here instead of to the no
        longer existing gcc/c-common.def.

        2005-12-14  Fariborz Jahanian <fjahanian@apple.com>

        Radar 4278774
        * pt.c (tsubst_copy_and_build): Instantiate @endcode(T).
        * parser.c (cp_parser_objc_encode_expression): Build a templatized
        parse tree for @encode(T).

        2005-12-14  Fariborz Jahanian <fjahanian@apple.com>

        Radar 4278774
        * c-common.def: Add new expression code AT_ENCODE_EXPR.

In gcc/testsuite/:
2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>

        Merge from 'apple/trunk' branch on FSF servers.

        2005-12-14  Fariborz Jahanian <fjahanian@apple.com>

        Radar 4278774
        * obj-c++.dg/encode-9.mm: New.

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

8 years ago[PATCH] Report LTO phase in lto1 process name v2
ak [Wed, 6 Oct 2010 22:02:58 +0000 (22:02 +0000)]
[PATCH] Report LTO phase in lto1 process name v2

On larger parallel WHOPR builds I find it useful to see in top which
phase a given lto1 is in.

Set the process name to lto1-wpa, lto1-ltrans, lto1-lto depending
on the current mode.

This is currently only implemented for Linux and only
using the "comm" process name, which is reported in top.

v2: Moved function to libiberty, renamed setproctitle to match
BSD. In theory it should pick up BSD's libc function for this
on a BSD system, but I haven't tested this.

gcc/lto/

2010-10-06  Andi Kleen <ak@linux.intel.com>

* lto.c (lto_process_name): Add.
(lto_main): Call lto_process_name.

include/

2010-10-06  Andi Kleen <ak@linux.intel.com>

* libiberty.h (setproctitle): Add prototype.

libiberty/

2010-10-06  Andi Kleen <ak@linux.intel.com>

* Makefile.in (CFILES): Add setproctitle.
(CONFIGURED_OFILES): Add setproctitle.
(setproctitle): Add rule.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
* setproctitle.c: Add file.
* functions.texi: Regenerate.

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

8 years ago * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
fxcoudert [Wed, 6 Oct 2010 20:10:43 +0000 (20:10 +0000)]
* config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
define_builtin_std where it's unnecessary.
* config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.

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

8 years ago * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
aesok [Wed, 6 Oct 2010 18:12:49 +0000 (18:12 +0000)]
* doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
* doc/tm.texi.in: Regenerate.
* system.h (CLASS_LIKELY_SPILLED_P): Poison.
* targhooks.c (default_class_likely_spilled_p): Don't use the
CLASS_LIKELY_SPILLED_P macro.

* config\arm\arm.md: Update comment.

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

8 years agoRemoved obsolete gcc/objc/README file
nicola [Wed, 6 Oct 2010 17:57:29 +0000 (17:57 +0000)]
Removed obsolete gcc/objc/README file

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

8 years ago * lto.c (partition_cgraph_node_p, partition_varpool_node_p): Handle
hubicka [Wed, 6 Oct 2010 17:28:13 +0000 (17:28 +0000)]
* lto.c (partition_cgraph_node_p, partition_varpool_node_p): Handle
COMDATs required by the linker.

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

8 years ago * ipa.c (cgraph_remove_unreachable_nodes): External references can always
hubicka [Wed, 6 Oct 2010 17:24:40 +0000 (17:24 +0000)]
* ipa.c (cgraph_remove_unreachable_nodes): External references can always
be removed.
(cgraph_externally_visible_p): We can not bring local comdats that are known
to linker; fix handling of internal visibility.
(function_and_variable_visibility): Likewise.

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

8 years ago2010-10-06 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 6 Oct 2010 17:17:16 +0000 (17:17 +0000)]
2010-10-06  Paolo Carlini  <paolo.carlini@oracle.com>

* include/std/functional (struct _Weak_result_type_impl): Add
specializazions for cv-qualified function types, for variadic
function types and pointers and references to function types,
and for pointers to member function types.
(struct _Reference_wrapper_base): Add specializations for
cv-qualified unary and binary function types.
* testsuite/20_util/reference_wrapper/result_type.cc: New.
* testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.

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

8 years ago PR libstdc++/45863
ro [Wed, 6 Oct 2010 17:01:11 +0000 (17:01 +0000)]
PR libstdc++/45863
* scripts/extract_symvers: Restore revision 164879.
Only use pvs on SunOS.

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

8 years ago2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
mshawcroft [Wed, 6 Oct 2010 16:42:50 +0000 (16:42 +0000)]
2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>

* config/linux/futex.h: New.
* config/linux/arm/mutex.h: New.
* configure.tgt (arm*-*-linux*): Add config path.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 16:39:27 +0000 (16:39 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans-stmt.c (gfc_trans_allocate): free lhs expr.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 16:30:08 +0000 (16:30 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans-array.c (gfc_free_ss_chain): Made non-static.
* trans-array.h (gfc_free_ss_chain): New prototype.
* trans-stmt.c (gfc_trans_where_2): Free ss chains.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 16:21:12 +0000 (16:21 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans-intrinsic.c (gfc_conv_intrinsic_funcall): Also free symbol's
subcomponents.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 16:11:23 +0000 (16:11 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans-expr.c (get_proc_ptr_comp): Restore initial expression type
before calling gfc_free_expr.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 16:05:41 +0000 (16:05 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans-expr.c (get_proc_ptr_comp): Restore initial expression type
before calling gfc_free_expr.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:59:31 +0000 (15:59 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans-array.c (gfc_conv_tmp_array_ref): Add factorized call to
gfc_advance_se_ss_chain.
* trans-expr.c (gfc_conv_subref_array_ref, gfc_conv_procedure_call,
gfc_conv_array_constructor_expr, gfc_trans_assignment_1): Remove
calls to gfc_advance_se_ss_chain after gfc_conv_tmp_array_ref.
* trans-intrinsic.c (gfc_conv_intrinsic_function): Ditto.
* trans-stmt.c (gfc_trans_where_assign, gfc_trans_where_3): Ditto.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:48:25 +0000 (15:48 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans.c (gfc_restore_backend_locus): New function.
(gfc_get_backend_locus): Renamed to ...
(gfc_save_backend_locus): ... this.
* trans.h (gfc_restore_backend_locus, gfc_get_backend_locus,
gfc_save_backend_locus): Same.
* trans-array.c (gfc_trans_g77_array, gfc_trans_dummy_array_bias,
gfc_trans_deferred_array): Rename gfc_get_backend_locus to
gfc_save_backend_locus.
(gfc_trans_dummy_array_bias): Call gfc_restore_backend_locus at the
end.
(gfc_trans_g77_array, gfc_trans_deferred_array): Use
gfc_restore_backend_locus instead of gfc_set_backend_locus.
(gfc_trans_deferred_array): Call gfc_restore_backend_locus on early
return.
* trans-decl.c (gfc_get_extern_function_decl, build_entry_thunks,
gfc_trans_deferred_vars):
Rename gfc_get_backend_locus to gfc_save_backend_locus.
Use gfc_restore_backend_locus insted of gfc_set_backend_locus.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:39:15 +0000 (15:39 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* trans-array.c (gfc_build_constant_array_constructor): Free array
spec when done.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:35:04 +0000 (15:35 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* symbol.c (gfc_copy_formal_args_ppc): Free previous formal arg list
before overwriting it.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:29:46 +0000 (15:29 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* array.c (gfc_match_array_spec): Don't re-initialize cleared struct.
* symbol.c (gen_shape_param): Ditto.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:25:51 +0000 (15:25 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* symbol.c (free_entry_list): New function.
(gfc_free_namespace): Free list of entries.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:21:00 +0000 (15:21 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* symbol.c (free_components): Free list of formal args and formal
namespace.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:15:48 +0000 (15:15 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* simplify.c (gfc_simplify_size): Clear temporary mpz int before
returning.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 15:07:43 +0000 (15:07 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* resolve.c (add_dt_to_dt_list): Remove unneeded if.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 14:52:02 +0000 (14:52 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* resolve.c (check_typebound_baseobject): Free local expr before
returning.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 14:47:40 +0000 (14:47 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* primary.c (gfc_match_structure_constructor): Invert the assert logic.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 14:43:55 +0000 (14:43 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* primary.c (gfc_free_structure_ctor_component): Also free the
component structure itself.

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

8 years ago PR c++/45908
ebotcazou [Wed, 6 Oct 2010 14:35:25 +0000 (14:35 +0000)]
PR c++/45908
* typeck.c (cp_build_addr_expr_1): Add check for incomplete types in
code folding offsetof-like computations.

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

8 years ago PR rtl-optimization/45394
ebotcazou [Wed, 6 Oct 2010 14:25:04 +0000 (14:25 +0000)]
PR rtl-optimization/45394
* combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
(struct rtx_subst_pair): Remove AFTER field.
(propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
(propagate_for_debug): Remove MOVE parameter and adjust.
(try_combine): In the special case where I2 is a PARALLEL, combine only
destinations of SETs and set I2SRC to the I2 source.
Adjust calls to propagate_for_debug throughout.
* reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
insns.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 14:23:30 +0000 (14:23 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* module.c (gfc_use_module): Free atom_string when done with it.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 14:19:30 +0000 (14:19 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* module.c (read_module): Remove useless string duplication.

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

8 years ago2010-10-06 Mikael Morin <mikael@gcc.gnu.org>
mikael [Wed, 6 Oct 2010 14:15:54 +0000 (14:15 +0000)]
2010-10-06  Mikael Morin  <mikael@gcc.gnu.org>

* gfortranspec.c (append_arg): Remove commented code.

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