public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/29240] New: [gcc 4.8] FAIL: gdb.base/align-c.exp: print _Alignof(long long)
@ 2022-06-10 12:56 vries at gcc dot gnu.org
2022-06-11 15:09 ` [Bug testsuite/29240] [gcc 4.8, m32] " vries at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-06-10 12:56 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29240
Bug ID: 29240
Summary: [gcc 4.8] FAIL: gdb.base/align-c.exp: print
_Alignof(long long)
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: ---
With gcc 4.8 and target board unix/-m32, I run into:
...
FAIL: gdb.base/align-c.exp: print _Alignof(long long)
FAIL: gdb.base/align-c.exp: print _Alignof(unsigned long long)
FAIL: gdb.base/align-c.exp: print _Alignof(double)
...
First FAIL in more detail:
...
(gdb) align_pair_unsigned_long_x_long_double)
print /d a_long_long^M
$225 = 8^M
(gdb) PASS: gdb.base/align-c.exp: get integer valueof "a_long_long"
print _Alignof(long long)^M
$226 = 4^M
(gdb) FAIL: gdb.base/align-c.exp: print _Alignof(long long)
...
This looks like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560 , which was
fixed in gcc 8.1.0. Curious that I don't run into it with system gcc 7.5.0,
but perhaps it was backported in the package.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/29240] [gcc 4.8, m32] FAIL: gdb.base/align-c.exp: print _Alignof(long long)
2022-06-10 12:56 [Bug testsuite/29240] New: [gcc 4.8] FAIL: gdb.base/align-c.exp: print _Alignof(long long) vries at gcc dot gnu.org
@ 2022-06-11 15:09 ` vries at gcc dot gnu.org
2022-06-11 15:25 ` vries at gcc dot gnu.org
2022-06-11 15:46 ` vries at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-06-11 15:09 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29240
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[gcc 4.8] FAIL: |[gcc 4.8, m32] FAIL:
|gdb.base/align-c.exp: print |gdb.base/align-c.exp: print
|_Alignof(long long) |_Alignof(long long)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/29240] [gcc 4.8, m32] FAIL: gdb.base/align-c.exp: print _Alignof(long long)
2022-06-10 12:56 [Bug testsuite/29240] New: [gcc 4.8] FAIL: gdb.base/align-c.exp: print _Alignof(long long) vries at gcc dot gnu.org
2022-06-11 15:09 ` [Bug testsuite/29240] [gcc 4.8, m32] " vries at gcc dot gnu.org
@ 2022-06-11 15:25 ` vries at gcc dot gnu.org
2022-06-11 15:46 ` vries at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-06-11 15:25 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29240
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Tom de Vries from comment #0)
> This looks like https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560 , which
> was fixed in gcc 8.1.0. Curious that I don't run into it with system gcc
> 7.5.0, but perhaps it was backported in the package.
A standalone reproducer:
...
$ cat align.c
#include <stdio.h>
unsigned a_long_long
= _Alignof (long long);
int
main ()
{
printf ("%d\n", a_long_long);
return 0;
}
...
Fails with gcc 4.8 (prints 8):
...
$ gcc-4.8 align.c -m32 && ./a.out
8
...
Passes with system gcc 7.5.0 (prints 4):
...
$ gcc align.c -m32 && ./a.out
4
...
Also passes (prints 4) with a regular gcc 7.5.0 build:
...
$ ./install/bin/gcc /home/vries/gdb_versions/devel/align.c -m32
$ ./a.out
4
....
so this is not related to the package.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug testsuite/29240] [gcc 4.8, m32] FAIL: gdb.base/align-c.exp: print _Alignof(long long)
2022-06-10 12:56 [Bug testsuite/29240] New: [gcc 4.8] FAIL: gdb.base/align-c.exp: print _Alignof(long long) vries at gcc dot gnu.org
2022-06-11 15:09 ` [Bug testsuite/29240] [gcc 4.8, m32] " vries at gcc dot gnu.org
2022-06-11 15:25 ` vries at gcc dot gnu.org
@ 2022-06-11 15:46 ` vries at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2022-06-11 15:46 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29240
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
This is probably https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023 , which was
fixed in gcc 4.9.0
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-11 15:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 12:56 [Bug testsuite/29240] New: [gcc 4.8] FAIL: gdb.base/align-c.exp: print _Alignof(long long) vries at gcc dot gnu.org
2022-06-11 15:09 ` [Bug testsuite/29240] [gcc 4.8, m32] " vries at gcc dot gnu.org
2022-06-11 15:25 ` vries at gcc dot gnu.org
2022-06-11 15:46 ` 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).