public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/53021] [4.8 Regression] bootstrap failure on Linux/ia32
Date: Tue, 17 Apr 2012 19:58:00 -0000	[thread overview]
Message-ID: <bug-53021-4-D6ue6LX2DH@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-53021-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53021

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-17 19:57:44 UTC ---
unique_base_value calls gen_rtx_ADDRESS which overrides
dwarf_file_data created by lookup_filename in dwarf2out.c:

 /* Check to see if the file name that was searched on the previous
     call matches this file name.  If so, return the index.  */
  if (file_table_last_lookup
      && (file_name == file_table_last_lookup->filename
          || filename_cmp (file_table_last_lookup->filename, file_name) == 0))
    return file_table_last_lookup;

  /* Didn't match the previous lookup, search the table.  */
  slot = htab_find_slot_with_hash (file_table, file_name,
                                   htab_hash_string (file_name), INSERT);
  if (*slot)                             
    return (struct dwarf_file_data *) *slot;

  created = ggc_alloc_dwarf_file_data ();
  created->filename = file_name;
  created->emitted_number = 0;
  *slot = created;
  return created;

However, return of htab_find_slot_with_hash wasn't marked with
GTY(()) and file_table_last_lookup was never set.


  reply	other threads:[~2012-04-17 19:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17 19:44 [Bug bootstrap/53021] New: " hjl.tools at gmail dot com
2012-04-17 19:58 ` hjl.tools at gmail dot com [this message]
2012-04-17 20:20 ` [Bug bootstrap/53021] " rsandifo at gcc dot gnu.org
2012-04-18 10:30 ` ebotcazou at gcc dot gnu.org
2012-04-20 12:20 ` jakub at gcc dot gnu.org
2012-04-21 10:23 ` rsandifo at gcc dot gnu.org
2012-04-21 18:59 ` rsandifo at gcc dot gnu.org
2012-04-21 19:00 ` rsandifo at gcc dot gnu.org

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=bug-53021-4-D6ue6LX2DH@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).