public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Jason Merrill <jason@redhat.com>
To: jason@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c++/6381: [PATCH] Missing assembler label
Date: Tue, 07 May 2002 08:16:00 -0000	[thread overview]
Message-ID: <20020507151605.25420.qmail@sources.redhat.com> (raw)

The following reply was made to PR c++/6381; it has been noted by GNATS.

From: Jason Merrill <jason@redhat.com>
To: gcc-patches@gcc.gnu.org
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/6381: [PATCH] Missing assembler label
Date: Tue, 07 May 2002 16:14:22 +0100

 --=-=-=
 
 6381 is a regression whereby compiling with -g -O causes us to end up with
 an undefined reference to a static local variable because we wrote out the
 initializer for another variable in dwarf2out.  The simple fix is to
 disable the problematic code; it means that the debug info will be somewhat
 less useful for unexpanded constants, but is safe.
 
 Mark, can this go onto the branch?  I'll work on a better fix for the trunk.
 
 2002-05-07  Jason Merrill  <jason@redhat.com>
 
 	* dwarf2out.c (rtl_for_decl_location): Don't try to extract a
 	constant value from DECL_INITIAL.
 
 
 --=-=-=
 Content-Type: text/x-patch
 Content-Disposition: inline
 
 *** dwarf2out.c.~1~	Sun May  5 22:06:08 2002
 --- dwarf2out.c	Tue May  7 16:08:53 2002
 *************** rtl_for_decl_location (decl)
 *** 8942,8947 ****
 --- 8946,8955 ----
   	    rtl = gen_rtx_CONST_STRING (VOIDmode, TREE_STRING_POINTER (init));
   	}
   
 + #if 0
 +       /* We mustn't actually emit anything here, as we might not get a
 +          chance to emit any symbols we refer to.  For the release, don't
 +          try to get this right.  */
         if (rtl == NULL)
   	{
   	  rtl = expand_expr (DECL_INITIAL (decl), NULL_RTX, VOIDmode,
 *************** rtl_for_decl_location (decl)
 *** 8951,8956 ****
 --- 8959,8965 ----
   	  if (rtl && GET_CODE (rtl) == MEM)
   	    rtl = NULL;
   	}
 + #endif
       }
   
   #ifdef ASM_SIMPLIFY_DWARF_ADDR
 
 --=-=-=--


             reply	other threads:[~2002-05-07 15:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-07  8:16 Jason Merrill [this message]
2002-05-07 10:26 Mark Mitchell
2002-05-07 14:06 Richard Henderson
2002-05-08  6:36 Jason Merrill
2002-05-08 12:36 Mark Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020507151605.25420.qmail@sources.redhat.com \
    --to=jason@redhat.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=jason@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).