public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/109285] New: Unused variable in function __fixunssfdi
@ 2023-03-26 10:27 jdx at o2 dot pl
  2023-03-26 17:01 ` [Bug target/109285] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: jdx at o2 dot pl @ 2023-03-26 10:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109285

            Bug ID: 109285
           Summary: Unused variable in function __fixunssfdi
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: internal-improvement
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jdx at o2 dot pl
  Target Milestone: ---
              Host: x86_64-w64-mingw32
            Target: h8300-elf

Created attachment 54756
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54756&action=edit
Proposed patch

I get the following warning when I build master (but it also applies to 12.2):

[...]
/d/Works/xcomp/gcc-build/./gcc/xgcc -B/d/Works/xcomp/gcc-build/./gcc/
-B/usr/local/h8300-elf/bin/ -B/usr/local/h8300-elf/lib/ -isystem
/usr/local/h8300-elf/include -isystem /usr/local/h8300-elf/sys-include   
-isystem /d/Works/xcomp/sysroot/h8300-elf/include -ms -O2  -isystem
/d/Works/xcomp/sysroot/h8300-elf/include -DIN_GCC -fPIC
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include  -DDF=SF -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector -Dinhibit_libc -DDF=SF -I. -I. -I../../.././gcc
-I../../../../../gcc/libgcc -I../../../../../gcc/libgcc/.
-I../../../../../gcc/libgcc/../gcc -I../../../../../gcc/libgcc/../include    
-o _fixunssfdi.o -MT _fixunssfdi.o -MD -MP -MF _fixunssfdi.dep -DL_fixunssfdi
-c ../../../../../gcc/libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS
d:\works\gcc\libgcc\libgcc2.c: In function '__fixunssfdi':
d:\works\gcc\libgcc\libgcc2.c:1459:14: warning: unused variable 'msb'
[-Wunused-variable]
 1459 |       SFtype msb;
      |              ^~~

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

* [Bug target/109285] Unused variable in function __fixunssfdi
  2023-03-26 10:27 [Bug libgcc/109285] New: Unused variable in function __fixunssfdi jdx at o2 dot pl
@ 2023-03-26 17:01 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-26 17:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109285

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|internal-improvement        |
          Component|libgcc                      |target

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
#if LIBGCC2_HAS_DF_MODE
...
#elif FLT_MANT_DIG < W_TYPE_SIZE

...
      SFtype msb;

Which means this code is not well tested at all and most likely only used on
this target ...

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

end of thread, other threads:[~2023-03-26 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-26 10:27 [Bug libgcc/109285] New: Unused variable in function __fixunssfdi jdx at o2 dot pl
2023-03-26 17:01 ` [Bug target/109285] " pinskia at gcc dot gnu.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).