1. 10 Dec, 2012 13 commits
  2. 09 Dec, 2012 10 commits
  3. 08 Dec, 2012 10 commits
  4. 07 Dec, 2012 7 commits
    • tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter. · 094484e7
      2012-12-07  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter.
      	(build_cplus_new): Adjust.
      	* cp-tree.h: Adjust declaration.
      	* init.c (build_value_init): Adjust.
      
      From-SVN: r194312
      Paolo Carlini committed
    • toplev.c (process_options): Do not warn when -ffunction-sections and -fprofile are used together. · 6757fd34
      2012-12-07  Sriraman Tallan  <tmsriram@google.com>
      
      	* toplev.c (process_options): Do not warn when -ffunction-sections
      	and -fprofile are used together.
      
      From-SVN: r194311
      Sriraman Tallam committed
    • * ree.c (struct ext_cand): Remove GTY markers. · 8a1239ac
      From-SVN: r194310
      Steven Bosscher committed
    • discr38.adb: Don't use ^M line endings. · 9b1baeef
      2012-12-07  Mike Stump  <mikestump@comcast.net>
      
      	    * gnat.dg/discr38.adb: Don't use ^M line endings.
      	    gnat.dg/loop_optimization13.adb: Likewise.
      	    gnat.dg/loop_optimization13.ads: Likewise.
      	    gnat.dg/discr36_pkg.adb: Likewise.
      	    gnat.dg/discr36_pkg.ads: Likewise.
      	    gnat.dg/loop_optimization11_pkg.ads: Likewise.
      	    gnat.dg/discr36.ads: Likewise.
      	    gnat.dg/loop_optimization11.adb: Likewise.
      
      From-SVN: r194309
      Mike Stump committed
    • re PR rtl-optimization/55141 (wrong code with -fno-split-wide-types) · 9011b0f6
      2012-12-07  Vladimir Makarov  <vmakarov@redhat.com>
      
      	testsuite/gcc.target/i386/pr55141.c
      	* lra-constraints.c (lra_constraints): Use biggest mode for
      	df_set_regs_ever_live.
      
      2012-12-07  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/55141
      	* gcc.target/i386/pr55141.c: New.
      
      From-SVN: r194308
      Vladimir Makarov committed
    • PR c++/54401 - Confusing diagnostics about type-alias at class scope · 62defc56
      Consider this invalid example given in the PR, where T is not defined:
      
           1	template<typename>
           2	struct X {
           3	    using type = T;
           4	};
      
      g++ yields the confusing diagnostics:
      
      test.cc:3:10: error: expected nested-name-specifier before 'type'
          using type = T;
                ^
      test.cc:3:10: error: using-declaration for non-member at class scope
      test.cc:3:15: error: expected ';' before '=' token
          using type = T;
                     ^
      test.cc:3:15: error: expected unqualified-id before '=' token
      
      I think this is because in cp_parser_member_declaration we tentatively
      parse an alias declaration; we then have a somewhat meaningful
      diagnostic which alas is not emitted because we are parsing
      tentatively.  As the parsing didn't succeed (because the input is
      invalid) we try to parse a using declaration, which fails as well; but
      then the diagnostic emitted is the one for the failed attempt at
      parsing a using declaration, not an alias declaration.  Oops.
      
      The idea of this patch is to commit the tentative parse when we see
      the '=' token in the alias-declaration.  That way any error encounter
      after that token is reported to the user.
      
      We are now getting the following output:
      
          test.cc:3:18: erreur: expected type-specifier before ‘T’
      	 using type = T;
      		      ^
          test.cc:3:18: erreur: ‘T’ does not name a type
      
      I don't really like the "before 'T'" there, but I think we maybe could
      revisit the format of what cp_parser_error emits in general, now that
      we have caret diagnostics;  We could maybe do away with the "before T"
      altogether?
      
      In the mean time, it seems to me that this patch brings an improvement
      over what we already have in trunk, and the issue above could be
      addressed separately.
      
      Tested on x86_64-unknown-linux-gnu against trunk.
      
      gcc/cp/
      
      	* parser.c (cp_parser_alias_declaration): Commit to tentative
      	parse when see the '=' token.  Get out if the type-id is invalid.
      	Update function comment.
      	(cp_parser_member_declaration): Don't try to parse a using
      	declaration if we know that we expected an alias declaration; that
      	is, if we see the '=' token after the identifier.
      
      gcc/testsuite/
      
      	* g++.dg/cpp0x/alias-decl-28.C: New test.
      	* g++.dg/cpp0x/alias-decl-16.C: Update.
      
      From-SVN: r194306
      Dodji Seketeli committed
    • tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND parameter. · 0588ac84
      
       	* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND
       	parameter.
       	(try_unroll_loop_completely) Update.
      
      From-SVN: r194305
      Jan Hubicka committed