public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/67450] New: [6 Regression] ERROR: can't unset "et_cache(ia32,value)": no such element in array
@ 2015-09-04 12:09 hjl.tools at gmail dot com
  2015-09-04 15:09 ` [Bug testsuite/67450] " hjl at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: hjl.tools at gmail dot com @ 2015-09-04 12:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67450

            Bug ID: 67450
           Summary: [6 Regression] ERROR: can't unset
                    "et_cache(ia32,value)": no such element in array
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: clyon at gcc dot gnu.org
  Target Milestone: ---

r227401 added

proc check_cached_effective_target { prop args } {
    global et_cache
    global et_prop_list

    set target [current_target_name]
    if {![info exists et_cache($prop,target)]
        || $et_cache($prop,target) != $target} {
        verbose "check_cached_effective_target $prop: checking $target" 2
        set et_cache($prop,target) $target
        set et_cache($prop,value) [uplevel eval $args]
        lappend et_prop_list $prop
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

When $prop is already on et_prop_list, it leads to

ERROR: can't unset "et_cache(ia32,value)": no such element in array

in clear_effective_target_cache.

        verbose "check_cached_effective_target cached list is now:
$et_prop_list" 2
    }
    set value $et_cache($prop,value)
    verbose "check_cached_effective_target $prop: returning $value for
$target" 2
    return $value
}


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug testsuite/67450] [6 Regression] ERROR: can't unset "et_cache(ia32,value)": no such element in array
  2015-09-04 12:09 [Bug testsuite/67450] New: [6 Regression] ERROR: can't unset "et_cache(ia32,value)": no such element in array hjl.tools at gmail dot com
@ 2015-09-04 15:09 ` hjl at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: hjl at gcc dot gnu.org @ 2015-09-04 15:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67450

--- Comment #1 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Fri Sep  4 15:09:22 2015
New Revision: 227492

URL: https://gcc.gnu.org/viewcvs?rev=227492&root=gcc&view=rev
Log:
Apppend $prop to et_prop_list only if needed

        PR testsuite/67450
        * lib/target-supports.exp (check_cached_effective_target):
        Apppend $prop to et_prop_list only if needed.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/lib/target-supports.exp


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-04 15:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-04 12:09 [Bug testsuite/67450] New: [6 Regression] ERROR: can't unset "et_cache(ia32,value)": no such element in array hjl.tools at gmail dot com
2015-09-04 15:09 ` [Bug testsuite/67450] " hjl at gcc dot gnu.org

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).