Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(915)

Issue 5341048: [google] fix build warning

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by xur
Modified:
12 years, 5 months ago
Reviewers:
davidxl
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/main/
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M gcc/dwarf2out.c View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 2
xur
Fix the build warning introduced in r180971. This is for google branch only. Tested with ...
12 years, 5 months ago (2011-11-07 22:40:27 UTC) #1
davidxl
12 years, 5 months ago (2011-11-07 22:42:28 UTC) #2
ok for google/main.

David

On Mon, Nov 7, 2011 at 2:40 PM, Rong Xu <xur@google.com> wrote:
> Fix the build warning introduced in r180971.
>
> This is for google branch only.
>
> Tested with build.
>
> 2011-11-07   Rong Xu  <xur@google.com>
>
>        * gcc/dwarf2out.c (dwarf2out_decl): fix mixed declarations and code.
>
> Index: gcc/dwarf2out.c
> ===================================================================
> --- gcc/dwarf2out.c     (revision 180977)
> +++ gcc/dwarf2out.c     (working copy)
> @@ -19746,6 +19746,8 @@
>  void
>  dwarf2out_decl (tree decl)
>  {
> +  dw_die_ref context_die;
> +
>   /* In LIPO mode, we may output some functions whose type is defined
>      in another function that will not be output. This can result in
>      undefined location list symbols in the debug type info.
> @@ -19779,7 +19781,7 @@
>       }
>     }
>
> -  dw_die_ref context_die = comp_unit_die ();
> +  context_die = comp_unit_die ();
>
>   switch (TREE_CODE (decl))
>     {
>
> --
> This patch is available for review at http://codereview.appspot.com/5341048
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b