From alexandre.chaboche at trixell-thalesgroup.com Fri Feb 5 03:04:03 2021 From: alexandre.chaboche at trixell-thalesgroup.com (CHABOCHE Alexandre) Date: Fri Feb 5 03:09:09 2021 Subject: [xsde-users] Buidling libxsde with clang: -mfp32 argument not used during compilation Message-ID: <2b352bbcb70e42b18d1e31cd41dd3afe@trixell-thalesgroup.com> Hello all xsde-user, As said in the title, I'm currently building the library with clang for VxWorks 7 and as my application use the VFP i must also build the library with this option. During the library I have the following message: "warning: argument unused during compilation: '-mfp32'" How can I do if possible to get the VFP registers arguments used by the library xsde? Best regards Alexandre Chaboche From boris at codesynthesis.com Mon Feb 8 06:36:29 2021 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Feb 8 06:41:37 2021 Subject: [xsde-users] Buidling libxsde with clang: -mfp32 argument not used during compilation In-Reply-To: <2b352bbcb70e42b18d1e31cd41dd3afe@trixell-thalesgroup.com> References: <2b352bbcb70e42b18d1e31cd41dd3afe@trixell-thalesgroup.com> Message-ID: CHABOCHE Alexandre writes: > During the library I have the following message: "warning: argument > unused during compilation: '-mfp32'" To know more we need to understand what command causes this warning. Again, can you run make with -j1 and then send the command line that is printed immediately before this warning. From alexandre.chaboche at trixell-thalesgroup.com Mon Feb 8 07:52:15 2021 From: alexandre.chaboche at trixell-thalesgroup.com (CHABOCHE Alexandre) Date: Mon Feb 8 07:57:31 2021 Subject: [xsde-users] Buidling libxsde with clang: -mfp32 argument not used during compilation In-Reply-To: References: <2b352bbcb70e42b18d1e31cd41dd3afe@trixell-thalesgroup.com>, Message-ID: Here is the command line printed just before the warning, for each file built the same warning is triggered. clang -I.. -O2 -target armv7a-none-eabi -mfp32 -mno-implicit-float -fno-builtin -fansi-escape-codes -g -D_VSB_CONFIG_FILE=\"D:/app/Data/3131/WS_Branch_SP2R5_upgradeVXWorks/VSB/h/config/vsbConfig.h\" -D_WRS_KERNEL -D__USER_LABEL_PREFIX__= -D__ARM_NEON__ -DZEVAL -DSDHC_STORAGE -D__vxworks -D__VXWORKS__ -D__ELF__ -D_HAVE_TOOL_XTORS -nostdlibinc -nostdinc++ -ftls-model=local-exec -fno-strict-aliasing - D_USE_INIT_ARRAY -mllvm -two-entry-phi-node-folding-threshold=2 -MD -MP -mlong-calls -DARMEL -DCPU=ARMARCH7 -DTOOL_FAMILY=llvm -DTOOL=llvm -isystemD:/app/Data/3131/WS_Branch_SP2R5_upgradeVXWorks/VSB/krnl /h/public -isystemD:/app/Data/3131/WS_Branch_SP2R5_upgradeVXWorks/VSB/share/h/public -isystemD:/app/Data/3131/WS_Branch_SP2R5_upgradeVXWorks/VSB/usr/h/public -ID:/app/Data/3131/WS_Branch_SP2R5_upgradeVXW orks/VSB/share/h -ID:/app/Data/3131/WS_Branch_SP2R5_upgradeVXWorks/VSB/usr/h/public -fexceptions -c c/expat/xmlparse.c -o c/expat/xmlparse.o clang: ?[0;1;35mwarning: ?[0margument unused during compilation: '-mfp32' [-Wunused-command-line-argument]?[0m ________________________________ De : Boris Kolpackov Envoy? : lundi 8 f?vrier 2021 12:36:29 ? : CHABOCHE Alexandre Cc : xsde-users@codesynthesis.com Objet : Re: [xsde-users] Buidling libxsde with clang: -mfp32 argument not used during compilation CHABOCHE Alexandre writes: > During the library I have the following message: "warning: argument > unused during compilation: '-mfp32'" To know more we need to understand what command causes this warning. Again, can you run make with -j1 and then send the command line that is printed immediately before this warning. From boris at codesynthesis.com Mon Feb 8 08:53:15 2021 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Feb 8 08:58:23 2021 Subject: [xsde-users] Buidling libxsde with clang: -mfp32 argument not used during compilation In-Reply-To: References: <2b352bbcb70e42b18d1e31cd41dd3afe@trixell-thalesgroup.com> Message-ID: CHABOCHE Alexandre writes: > clang -I.. -O2 -target armv7a-none-eabi -mfp32 [...] I looked into -mfp32 and from Clang's documentation is appears that it only applies to MIPS. Seeing that your target is armv7a, it does not make sense to specify it, which is the reason for Clang's warning. I believe you can safely drop it from this configuration.