public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* Compilation warning in simple-object-xcoff.c
@ 2018-01-16 17:45 Eli Zaretskii
  2018-01-16 18:01 ` DJ Delorie
  0 siblings, 1 reply; 14+ messages in thread
From: Eli Zaretskii @ 2018-01-16 17:45 UTC (permalink / raw)
  To: gcc-patches; +Cc: gdb-patches

Compiling GDB 8.0.91 with mingw.org's MinGW GCC 6.0.3 produces this
warning in libiberty:

     gcc -c -DHAVE_CONFIG_H -O2 -gdwarf-4 -g3 -D__USE_MINGW_ACCESS  -I. -I./../include   -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -D_GNU_SOURCE ./simple-object-xcoff.c -o simple-object-xcoff.o
     ./simple-object-xcoff.c: In function 'simple_object_xcoff_find_sections':
     ./simple-object-xcoff.c:605:25: warning: left shift count >= width of type [-Wshift-count-overflow]
	  x_scnlen = x_scnlen << 32
                         ^~

And indeed x_scnlen is declared as a 32-bit data type off_t.

I'm willing to test patches if needed.

Thanks.

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

end of thread, other threads:[~2018-01-27 16:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-16 17:45 Compilation warning in simple-object-xcoff.c Eli Zaretskii
2018-01-16 18:01 ` DJ Delorie
2018-01-16 18:25   ` Eli Zaretskii
2018-01-16 18:38     ` DJ Delorie
2018-01-16 22:01       ` Andreas Schwab
2018-01-17 15:21         ` Eli Zaretskii
2018-01-17 20:48           ` DJ Delorie
2018-01-18  3:25             ` Eli Zaretskii
2018-01-20 12:48               ` Eli Zaretskii
2018-01-21  5:01                 ` Ian Lance Taylor via gdb-patches
2018-01-21 15:45                   ` Eli Zaretskii
2018-01-22  4:27                     ` Joel Brobecker
2018-01-27 16:43                       ` Eli Zaretskii
2018-01-21 15:45                   ` Eli Zaretskii

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