Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37568848
en ru br
ALT Linux repositórios
S:20200916-alt2

Group :: Desenvolvimento/C
RPM: f2c

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: f2c-ALT-RISC-V.patch
Download


--- a/uninit.c
+++ b/uninit.c
@@ -234,7 +234,14 @@ which we want*/
 
 #endif /*Can_use__setfpucw*/
 
-#else /* !(mc68000||powerpc) */
+#elif defined(__riscv)
+/* RISC-V does not generate traps on floating-point exceptions,
+so it's not possible to enable them */
+        fflush(stdout);
+        fprintf(stderr, "\nf2c's -trapuv option is not supported on RISC-V\n");
+        exit(-1);
+
+#else /* !(mc68000||powerpc||riscv) */
 
 #ifdef _FPU_IEEE
 #ifndef _FPU_EXTENDED /* e.g., ARM processor under Linux */
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009