• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/clapack/0006-remove-uninit-f2c.patch
Alex SuykovAlex Suykov committed 4c71130b61315 Aug 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
uninit.c includes glibc-specific <fpu_control.h> not provided by musl.
2
Somewhat portable replacement is <fenv.h>, which is available in musl
3
but requires non-trivial changes to uninit.c.
4
​
5
f2c uses _uninit_f2c() from uninit.c to implement its -trapuv option,
6
pre-initializiing floating-point variables to NaN and asking FPU to send
7
SIGFPE whenever NaN value is encountered.
8
​
9
clapack source has already been run through f2c without -trapuv,
10
so uninit.c code is not used anywhere and can be safely excluded.
11
​
12
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
13
​
14
--- a/F2CLIBS/libf2c/CMakeLists.txt
15
+++ b/F2CLIBS/libf2c/CMakeLists.txt
16
@@ -1,7 +1,7 @@
17
 set(MISC 
18
   f77vers.c i77vers.c main.c s_rnge.c abort_.c exit_.c getarg_.c iargc_.c
19
   getenv_.c signal_.c s_stop.c s_paus.c system_.c cabs.c ctype.c
20
-  derf_.c derfc_.c erf_.c erfc_.c sig_die.c uninit.c)
21
+  derf_.c derfc_.c erf_.c erfc_.c sig_die.c)
22
 set(POW pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c pow_ri.c pow_zi.c pow_zz.c)
23
 set(CX     c_abs.c c_cos.c c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c)
24
 set(DCX    z_abs.c z_cos.c z_div.c z_exp.c z_log.c z_sin.c z_sqrt.c)
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.