This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rust/20110] wrong type for integer constant


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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

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

commit 347dc1025db1c0acf616ab6520c3f36448f25e8b
Author: Tom Tromey <tom@tromey.com>
Date:   Wed May 18 17:22:30 2016 -0600

    Fix PR rust/20110

    PR rust/20110 concerns the type of an integer constant that is too
    large for "i32", the default integer type.  This patch changes the
    type of such a constant to i64.  This is important because such values
    are often addresses, so truncating them by default is unfriendly.

    Built and regtested on x86-64 Fedora 23.

    2016-06-10  Tom Tromey  <tom@tromey.com>

        PR rust/20110:
        * rust-exp.y (lex_number): Don't truncate large numbers to i32.

    2016-06-10  Tom Tromey  <tom@tromey.com>

        PR rust/20110:
        * gdb.rust/expr.exp: Add test for integer constant larger than
        i32.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]