This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/21185] add i128 and u128 support to rust
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 22 May 2017 22:25:44 +0000
- Subject: [Bug rust/21185] add i128 and u128 support to rust
- Auto-submitted: auto-generated
- References: <bug-21185-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21185
--- Comment #10 from Tom Tromey <tromey at sourceware dot org> ---
(In reply to Pedro Alves from comment #9)
> > It seems like it would hard to even find the places, unless maybe the new
> > type was a class that did not allow conversions from integer types.
> > Hmm...
>
> Yeah, I think a class (plus arithmetic operators) would be what I'd try too.
>
> Maybe we could borrow gcc's wide_int (or parts of it).
>
> Not sure about disabling conversions from integer types. I'd assume it to
> be handy, to allow natural initialization from 0 and 1 [integer foo = 1;],
> etc. I'd think that it's conversion to (narrower) integer types that would
> be an issue.
Yeah, duh, that makes sense.
I've got some cleanups to the scalar printing code that might be useful.
Not quite done -- there's some weird stuff in there.
I haven't looked at the arithmetic stuff.
--
You are receiving this mail because:
You are on the CC list for the bug.