This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new d4a7e33e6 compiler/riscv: Add speed profile
d4a7e33e6 is described below

commit d4a7e33e6db0cff4a8ef46c8b82e1f96e66ec3a4
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Tue Oct 4 13:18:12 2022 +0200

    compiler/riscv: Add speed profile
    
    Arm-based compilers have speed profile now also riscv
    will have it.
---
 compiler/riscv-none-embed/compiler.yml | 1 +
 compiler/riscv64/compiler.yml          | 1 +
 2 files changed, 2 insertions(+)

diff --git a/compiler/riscv-none-embed/compiler.yml 
b/compiler/riscv-none-embed/compiler.yml
index 9301a6383..2f8da8f91 100644
--- a/compiler/riscv-none-embed/compiler.yml
+++ b/compiler/riscv-none-embed/compiler.yml
@@ -28,6 +28,7 @@ compiler.path.objcopy: "riscv-none-embed-objcopy"
 compiler.flags.base: [-Wall, -Werror, -Wno-format-truncation, 
-ffunction-sections, -fdata-sections, -fno-builtin-printf, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
+compiler.flags.speed: [compiler.flags.base, -Ofast, -ggdb]
 compiler.flags.debug: [compiler.flags.base, -Og, -ggdb]
 
 compiler.as.flags: [-x assembler-with-cpp]
diff --git a/compiler/riscv64/compiler.yml b/compiler/riscv64/compiler.yml
index f43c67351..2896394fe 100644
--- a/compiler/riscv64/compiler.yml
+++ b/compiler/riscv64/compiler.yml
@@ -28,6 +28,7 @@ compiler.path.objcopy: "riscv64-unknown-elf-objcopy"
 compiler.flags.base: [-Wall, -Werror, -Wno-format-truncation, 
-ffunction-sections, -fdata-sections, -fno-builtin-printf, -fno-common]
 compiler.flags.default: [compiler.flags.base, -O1, -ggdb]
 compiler.flags.optimized: [compiler.flags.base, -Os, -ggdb]
+compiler.flags.speed: [compiler.flags.base, -Ofast, -ggdb]
 compiler.flags.debug: [compiler.flags.base, -Og, -ggdb]
 
 compiler.as.flags: [-x assembler-with-cpp]

Reply via email to