public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/26953] New: [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w
@ 2020-11-26 14:52 vries at gcc dot gnu.org
  2020-11-26 16:50 ` [Bug testsuite/26953] " vries at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-11-26 14:52 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26953

            Bug ID: 26953
           Summary: [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: testsuite
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

There's an xfail, but it's not effective for the second one:
...
# scalar_storage_order requires gcc >= 6                                        
if { ([test_compiler_info {gcc-[0-5]-*}] || ![test_compiler_info gcc*]) } {
  setup_xfail "*-*-*"
}
gdb_test "x/x &o.v" "0x04000000"
gdb_test "x/xh &o.w" "0x0300"
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug testsuite/26953] [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w
  2020-11-26 14:52 [Bug testsuite/26953] New: [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w vries at gcc dot gnu.org
@ 2020-11-26 16:50 ` vries at gcc dot gnu.org
  2020-12-10 15:39 ` vries at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-11-26 16:50 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26953

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Tentative patch:
...
diff --git a/gdb/testsuite/gdb.base/endianity.exp
b/gdb/testsuite/gdb.base/endianity.exp
index 2fa9ed3..61cbb50 100644
--- a/gdb/testsuite/gdb.base/endianity.exp
+++ b/gdb/testsuite/gdb.base/endianity.exp
@@ -36,10 +36,12 @@ gdb_test "print o.d = -23.125" "= -23.125"

 # scalar_storage_order requires gcc >= 6
 if { ([test_compiler_info {gcc-[0-5]-*}] || ![test_compiler_info gcc*]) } {
-  setup_xfail "*-*-*"
+    gdb_test "x/x &o.v" "0x00000004"
+    gdb_test "x/xh &o.w" "0x0003"
+} else {
+    gdb_test "x/x &o.v" "0x04000000"
+    gdb_test "x/xh &o.w" "0x0300"
 }
-gdb_test "x/x &o.v" "0x04000000"
-gdb_test "x/xh &o.w" "0x0300"

 gdb_test "print o" "= {v = 4, w = 3, x = 2, f = 1.5, cplx = 1.25 \\+ 7.25i, d
= -23.125}" \
     "print o after assignment"
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug testsuite/26953] [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w
  2020-11-26 14:52 [Bug testsuite/26953] New: [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w vries at gcc dot gnu.org
  2020-11-26 16:50 ` [Bug testsuite/26953] " vries at gcc dot gnu.org
@ 2020-12-10 15:39 ` vries at gcc dot gnu.org
  2020-12-13 16:22 ` cvs-commit at gcc dot gnu.org
  2020-12-13 16:34 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-12-10 15:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26953

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
https://sourceware.org/pipermail/gdb-patches/2020-December/173980.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug testsuite/26953] [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w
  2020-11-26 14:52 [Bug testsuite/26953] New: [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w vries at gcc dot gnu.org
  2020-11-26 16:50 ` [Bug testsuite/26953] " vries at gcc dot gnu.org
  2020-12-10 15:39 ` vries at gcc dot gnu.org
@ 2020-12-13 16:22 ` cvs-commit at gcc dot gnu.org
  2020-12-13 16:34 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-13 16:22 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26953

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <vries@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=862fcbd8f02b03cbf37b452e35bff8361d7a0208

commit 862fcbd8f02b03cbf37b452e35bff8361d7a0208
Author: Tom de Vries <tdevries@suse.de>
Date:   Sun Dec 13 17:22:40 2020 +0100

    [gdb/testsuite] Fix gdb.base/endianity.exp with gcc-4.8

    When running test-case gdb.base/endianity.exp using gcc-4.8, we get:
    ...
    (gdb) x/x &o.v^M
    0x7fffffffd120: 0x00000004^M
    (gdb) XFAIL: gdb.base/endianity.exp: x/x &o.v
    x/xh &o.w^M
    0x7fffffffd124: 0x0003^M
    (gdb) FAIL: gdb.base/endianity.exp: x/xh &o.w
    ...

    The gcc 4.8 compiler does not support the scalar_storage_order attribute,
so
    the testcase is compiled without that attribute, and the expected results
are
    different.

    Fix this by rather than xfailing, skipping the tests if the compiler does
not
    support the scalar_storage_order attribute.

    Tested on x86_64-linux, with gcc-4.8, gcc-7, and clang-10.

    gdb/testsuite/ChangeLog:

    2020-12-13  Tom de Vries  <tdevries@suse.de>

            PR testsuite/26953
            * gdb.base/endianity.exp: Skip tests requiring scalar_storage_order
            attribute support if compiler doesn't support it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug testsuite/26953] [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w
  2020-11-26 14:52 [Bug testsuite/26953] New: [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w vries at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-12-13 16:22 ` cvs-commit at gcc dot gnu.org
@ 2020-12-13 16:34 ` vries at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2020-12-13 16:34 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26953

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |11.1

--- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> ---
Patch fixing test-case committed, marking resolved-fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2020-12-13 16:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 14:52 [Bug testsuite/26953] New: [gcc 4.8] FAIL: gdb.base/endianity.exp: x/xh &o.w vries at gcc dot gnu.org
2020-11-26 16:50 ` [Bug testsuite/26953] " vries at gcc dot gnu.org
2020-12-10 15:39 ` vries at gcc dot gnu.org
2020-12-13 16:22 ` cvs-commit at gcc dot gnu.org
2020-12-13 16:34 ` vries 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).