public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/29276] New: sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’
@ 2022-06-22 19:02 hector.oron at gmail dot com
2022-10-23 18:29 ` [Bug sim/29276] " vapier at gentoo dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: hector.oron at gmail dot com @ 2022-06-22 19:02 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29276
Bug ID: 29276
Summary: sim/mips/sim-main.h:41:25: error: conversion from
‘long long unsigned int’ to ‘unsigned_word’
Product: gdb
Version: 12.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: sim
Assignee: unassigned at sourceware dot org
Reporter: hector.oron at gmail dot com
CC: vapier at gentoo dot org
Target Milestone: ---
When building mipsel simulator, on GDB 12.1, build fails with:
In file included from support.c:25:
/<<PKGBUILDDIR>>/sim/mips/mips.igen: In function ‘do_dmfc1b’:
/<<PKGBUILDDIR>>/sim/mips/sim-main.h:41:25: error: conversion from ‘long long
unsigned int’ to ‘unsigned_word’ {aka ‘unsigned int’} changes value from
‘16045693110240459472’ to ‘3134241488’ [-Werror=overflow]
41 | #define SET64HI(t) (((uword64)(t))<<32)
| ^
/<<PKGBUILDDIR>>/sim/mips/mips.igen:1453:15: note: in expansion of macro
‘SET64HI’
1453 | GPR[rt] = SET64HI (0xDEADC0DE) | 0xBAD0BAD0;
| ^~~~~~~
Full log:
https://buildd.debian.org/status/fetch.php?pkg=gdb&arch=mipsel&ver=12.1-1&stamp=1655916813&raw=0
Build was fine on 11.2 release.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sim/29276] sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’
2022-06-22 19:02 [Bug sim/29276] New: sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’ hector.oron at gmail dot com
@ 2022-10-23 18:29 ` vapier at gentoo dot org
2022-10-23 19:44 ` [Bug sim/29276] mips: mips.igen:1453:15: " vapier at gentoo dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: vapier at gentoo dot org @ 2022-10-23 18:29 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29276
--- Comment #1 from Mike Frysinger <vapier at gentoo dot org> ---
pretty sure the warning was in there in older versions, the diff with gdb-12 is
that we enabled -Werror (since it was building cleanly for the few targets i
checked)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sim/29276] mips: mips.igen:1453:15: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’
2022-06-22 19:02 [Bug sim/29276] New: sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’ hector.oron at gmail dot com
2022-10-23 18:29 ` [Bug sim/29276] " vapier at gentoo dot org
@ 2022-10-23 19:44 ` vapier at gentoo dot org
2022-10-23 19:49 ` vapier at gentoo dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: vapier at gentoo dot org @ 2022-10-23 19:44 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29276
Mike Frysinger <vapier at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|sim/mips/sim-main.h:41:25: |mips: mips.igen:1453:15:
|error: conversion from |error: conversion from
|‘long long unsigned int’ to |‘long long unsigned int’ to
|‘unsigned_word’ |‘unsigned_word’
CC| |andrew.bennett at imgtec dot com
--- Comment #2 from Mike Frysinger <vapier at gentoo dot org> ---
the code in question is:
:function:::void:do_dmfc1b:int rt, int fs
*mipsIV:
*mipsV:
*mips64:
*mips64r2:
*mips64r6:
*vr4100:
*vr5000:
*r3900:
*micromips64:
{
if (SizeFGR () == 64)
GPR[rt] = FGR[fs];
else if ((fs & 0x1) == 0)
GPR[rt] = SET64HI (FGR[fs+1]) | FGR[fs];
else
GPR[rt] = SET64HI (0xDEADC0DE) | 0xBAD0BAD0;
TRACE_ALU_RESULT (GPR[rt]);
}
this was introduced here:
commit 8e394ffc7ab691eafcf276d7ae578454a8c5548f
Author: Andrew Bennett <andrew.bennett@imgtec.com>
Date: Fri Sep 25 15:52:18 2015 +0100
[PATCH] Add micromips support to the MIPS simulator
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sim/29276] mips: mips.igen:1453:15: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’
2022-06-22 19:02 [Bug sim/29276] New: sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’ hector.oron at gmail dot com
2022-10-23 18:29 ` [Bug sim/29276] " vapier at gentoo dot org
2022-10-23 19:44 ` [Bug sim/29276] mips: mips.igen:1453:15: " vapier at gentoo dot org
@ 2022-10-23 19:49 ` vapier at gentoo dot org
2022-11-04 0:45 ` vapier at gentoo dot org
2022-11-08 7:57 ` vapier at gentoo dot org
4 siblings, 0 replies; 6+ messages in thread
From: vapier at gentoo dot org @ 2022-10-23 19:49 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29276
Mike Frysinger <vapier at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |mipstx39-rtems6
--- Comment #3 from Mike Frysinger <vapier at gentoo dot org> ---
the setting of 0xDEADC0DE & 0xBAD0BAD0 looks kind of bogus. based on other
functions in here, like do_dmtc1b, i wonder if it shouldn't be:
-- a/sim/mips/mips.igen
+++ b/sim/mips/mips.igen
@@ -1450,7 +1450,7 @@
else if ((fs & 0x1) == 0)
GPR[rt] = SET64HI (FGR[fs+1]) | FGR[fs];
else
- GPR[rt] = SET64HI (0xDEADC0DE) | 0xBAD0BAD0;
+ Unpredictable ();
TRACE_ALU_RESULT (GPR[rt]);
}
and should we do this for 010001,00001,5.RT,5.FS,00000000000:COP1:64,f::DMFC1a
?
@@ -5782,7 +5782,7 @@
else if ((FS & 0x1) == 0)
v = SET64HI (FGR[FS+1]) | FGR[FS];
else
- v = SET64HI (0xDEADC0DE) | 0xBAD0BAD0;
+ Unpredictable ();
PENDING_FILL (RT, v);
TRACE_ALU_RESULT (v);
}
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sim/29276] mips: mips.igen:1453:15: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’
2022-06-22 19:02 [Bug sim/29276] New: sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’ hector.oron at gmail dot com
` (2 preceding siblings ...)
2022-10-23 19:49 ` vapier at gentoo dot org
@ 2022-11-04 0:45 ` vapier at gentoo dot org
2022-11-08 7:57 ` vapier at gentoo dot org
4 siblings, 0 replies; 6+ messages in thread
From: vapier at gentoo dot org @ 2022-11-04 0:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29276
Mike Frysinger <vapier at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://sourceware.org/pipe
| |rmail/gdb-patches/2022-Nove
| |mber/193376.html
--- Comment #4 from Mike Frysinger <vapier at gentoo dot org> ---
posted a patch to do just that now
https://sourceware.org/pipermail/gdb-patches/2022-November/193376.html
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sim/29276] mips: mips.igen:1453:15: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’
2022-06-22 19:02 [Bug sim/29276] New: sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’ hector.oron at gmail dot com
` (3 preceding siblings ...)
2022-11-04 0:45 ` vapier at gentoo dot org
@ 2022-11-08 7:57 ` vapier at gentoo dot org
4 siblings, 0 replies; 6+ messages in thread
From: vapier at gentoo dot org @ 2022-11-08 7:57 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29276
Mike Frysinger <vapier at gentoo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Mike Frysinger <vapier at gentoo dot org> ---
landed that patch for GDB 13. if the original authors prefer something
different, feel free to post a follow up.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2022-11-08 7:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22 19:02 [Bug sim/29276] New: sim/mips/sim-main.h:41:25: error: conversion from ‘long long unsigned int’ to ‘unsigned_word’ hector.oron at gmail dot com
2022-10-23 18:29 ` [Bug sim/29276] " vapier at gentoo dot org
2022-10-23 19:44 ` [Bug sim/29276] mips: mips.igen:1453:15: " vapier at gentoo dot org
2022-10-23 19:49 ` vapier at gentoo dot org
2022-11-04 0:45 ` vapier at gentoo dot org
2022-11-08 7:57 ` vapier at gentoo dot 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).