mark.yang 41ea133851
dhrystone: fix build error with gcc-15
* fix too many arguments error
dhry_1.c: In function 'main':
dhry_1.c:176:23: error: too many arguments to function 'Func_1'; expected 0, have 2
  176 |       if (Enum_Loc == Func_1 (Ch_Index, 'C'))
      |                       ^~~~~~  ~~~~~~~~
dhry_1.c:33:17: note: declared here
   33 | Enumeration     Func_1 ();
      |                 ^~~~~~

Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-10 08:31:05 -07:00

30 lines
963 B
BlitzBasic

SUMMARY = "Dhrystone CPU benchmark"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \
file://dhrystone.patch \
file://dhrystone-c89.patch \
file://0001-fix-too-many-arguments-error-in-gcc15.patch \
"
SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e"
# Need to override Makefile variables
EXTRA_OEMAKE = "-e MAKEFLAGS="
do_unpack() {
[ -d ${S} ] || mkdir -p ${S}
cd ${S}
sh ${DL_DIR}/dhry-c.shar
}
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/dhry ${D}${bindir}
}
# Prevent procedure merging as required by dhrystone.c:
CFLAGS += "-fno-lto"
CFLAGS:append:toolchain-clang = " -Wno-error=implicit-function-declaration -Wno-error=deprecated-non-prototype -Wno-error=implicit-int"
LDFLAGS += "-fno-lto"