public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/110812] New: Missing TARGET_OPTION_SAVE/RESTORE on riscv
@ 2023-07-26  8:36 schwab@linux-m68k.org
  2023-07-26  9:44 ` [Bug target/110812] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2023-07-26  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110812
           Summary: Missing TARGET_OPTION_SAVE/RESTORE on riscv
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: schwab@linux-m68k.org
                CC: jeffreyalaw at gmail dot com, kito.cheng at gmail dot com,
                    palmer at dabbelt dot com
  Target Milestone: ---
            Target: riscv*-*-*

The highway package fails to build with LTO:

[  5%] Linking CXX shared library libhwy.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/hwy.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -flto=auto -g
-DHWY_COMPILE_ALL_ATTAINABLE -O2 -g -DNDEBUG 
-Wl,--version-script=/home/abuild/rpmbuild/BUILD/highway-1.0.5/hwy/hwy.version
-flto=auto -Wl,--as-needed -Wl,-z,now -shared -Wl,-soname,libhwy.so.1 -o
libhwy.so.1.0.5 CMakeFiles/hwy.dir/hwy/aligned_allocator.cc.o
CMakeFiles/hwy.dir/hwy/nanobenchmark.cc.o
CMakeFiles/hwy.dir/hwy/per_target.cc.o CMakeFiles/hwy.dir/hwy/print.cc.o
CMakeFiles/hwy.dir/hwy/targets.cc.o CMakeFiles/hwy.dir/hwy/timer.cc.o 
lto1: fatal error: target specific builtin not available
compilation terminated.
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/lib64/gcc/riscv64-suse-linux/13/../../../../riscv64-suse-linux/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/hwy.dir/build.make:181: libhwy.so.1.0.5] Error 1

Workaround is to add -march=rv64gcv1p0, but the correct fix is to implement
TARGET_OPTION_SAVE/RESTORE.

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

* [Bug target/110812] Missing TARGET_OPTION_SAVE/RESTORE on riscv
  2023-07-26  8:36 [Bug target/110812] New: Missing TARGET_OPTION_SAVE/RESTORE on riscv schwab@linux-m68k.org
@ 2023-07-26  9:44 ` rguenth at gcc dot gnu.org
  2023-07-26 10:00 ` kito at gcc dot gnu.org
  2023-09-12 10:07 ` schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-26  9:44 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-07-26

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

* [Bug target/110812] Missing TARGET_OPTION_SAVE/RESTORE on riscv
  2023-07-26  8:36 [Bug target/110812] New: Missing TARGET_OPTION_SAVE/RESTORE on riscv schwab@linux-m68k.org
  2023-07-26  9:44 ` [Bug target/110812] " rguenth at gcc dot gnu.org
@ 2023-07-26 10:00 ` kito at gcc dot gnu.org
  2023-09-12 10:07 ` schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: kito at gcc dot gnu.org @ 2023-07-26 10:00 UTC (permalink / raw)
  To: gcc-bugs

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

Kito Cheng <kito at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |kito at gcc dot gnu.org

--- Comment #1 from Kito Cheng <kito at gcc dot gnu.org> ---
Ooops, I thought those target hook should implement when we have implement
target attribute, anyway thanks for the hint!

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

* [Bug target/110812] Missing TARGET_OPTION_SAVE/RESTORE on riscv
  2023-07-26  8:36 [Bug target/110812] New: Missing TARGET_OPTION_SAVE/RESTORE on riscv schwab@linux-m68k.org
  2023-07-26  9:44 ` [Bug target/110812] " rguenth at gcc dot gnu.org
  2023-07-26 10:00 ` kito at gcc dot gnu.org
@ 2023-09-12 10:07 ` schwab@linux-m68k.org
  2 siblings, 0 replies; 4+ messages in thread
From: schwab@linux-m68k.org @ 2023-09-12 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |malat at debian dot org

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> ---
*** Bug 111386 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2023-09-12 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26  8:36 [Bug target/110812] New: Missing TARGET_OPTION_SAVE/RESTORE on riscv schwab@linux-m68k.org
2023-07-26  9:44 ` [Bug target/110812] " rguenth at gcc dot gnu.org
2023-07-26 10:00 ` kito at gcc dot gnu.org
2023-09-12 10:07 ` schwab@linux-m68k.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).