public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45372]  New: warning coverage.c assigns -1 to unsigned, suggest -1u
@ 2010-08-21 22:12 jay dot krell at cornell dot edu
  2010-08-21 22:13 ` [Bug bootstrap/45372] " jay dot krell at cornell dot edu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jay dot krell at cornell dot edu @ 2010-08-21 22:12 UTC (permalink / raw)
  To: gcc-bugs

just a warning, not an error
bootstrapping from non-gcc


"/home/jay/src/gcc-4.5.1/gcc/coverage.c", line 174: warning: initializer does
not fit or is out of range: -1
"/home/jay/src/gcc-4.5.1/gcc/coverage.c", line 330: warning: initializer does
not fit or is out of range: -1


-bash-3.00$ uname -a
SunOS ssol 5.10 Generic_139555-08 sun4u sparc SUNW,Sun-Blade-100


 /home/jay/src/gcc-4.5.1/configure \
        -disable-shared \
        -target=sparc64-sun-solaris2.10 \
        -with-mpfr=/home/jay \
        -disable-nls \
        -prefix=/home/jay \
        -disable-bootstrap \
        -with-as=/usr/ccs/bin/as


read_counts_file (void)
...
gcov_unsigned_t checksum = -1;  # line 174


gcov_type *
get_coverage_counts
...
gcov_unsigned_t checksum = -1; # line 330


bootstrap from:

-bash-3.00$ cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
usage: cc [ options] files.  Use 'cc -flags' for details


-1u gives no warning.
nor does (unsigned)-1
nor does, I suspect, (gcov_unsigned_t)-1


-- 
           Summary: warning coverage.c assigns -1 to unsigned, suggest -1u
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jay dot krell at cornell dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45372


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

end of thread, other threads:[~2021-07-19  5:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45372-4@http.gcc.gnu.org/bugzilla/>
2021-07-19  5:18 ` [Bug bootstrap/45372] warning coverage.c assigns -1 to unsigned, suggest -1u pinskia at gcc dot gnu.org
2010-08-21 22:12 [Bug bootstrap/45372] New: " jay dot krell at cornell dot edu
2010-08-21 22:13 ` [Bug bootstrap/45372] " jay dot krell at cornell dot edu
2010-08-22  8:17 ` schwab at linux-m68k dot org
2010-08-22  8:57 ` jay dot krell at cornell dot edu

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).