<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r" -->

---
title: GCC Patches Added -mcpu=native -mtune=native Support For...
description: A SiFive engineer, Kito Cheng, has submitted patches to GCC adding -mcpu=native and -mtune=native support for RISC-V, bringing the architecture in line with...
canonical: https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: GCC Patches Added -mcpu=native -mtune=native Support For RISC-V | daily.dev
og:description: A SiFive engineer, Kito Cheng, has submitted patches to GCC adding -mcpu=native and -mtune=native support for RISC-V, bringing the architecture in line with...
og:url: https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r
og:image: https://api.daily.dev/og/posts/7BldbxF6R.png
og:image:alt: GCC Patches Added -mcpu=native -mtune=native Support For RISC-V
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GCC Patches Added -mcpu=native -mtune=native Support For RISC-V

**[Phoronix](https://daily.dev/sources/phoronix)** · 1 min read · 0 upvotes · 0 comments

## Summary

A SiFive engineer, Kito Cheng, has submitted patches to GCC adding -mcpu=native and -mtune=native support for RISC-V, bringing the architecture in line with others that already support these auto-detection options for CPU tuning. The patches lack support for hybrid/asymmetric RISC-V core designs so far, but do improve identification of SiFive P550, P870-D, U74, and Spacemit X60, X100, and A100 cores. The maintainers hope this lands in time for the GCC 17 release.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoronix.com/news/GCC-RISC-V-mcpu-mtune-native>

## Questions this post answers

### Does GCC support -mcpu=native and -mtune=native on RISC-V?

Not yet merged, but patches were posted by SiFive engineer Kito Cheng adding -mcpu=native and -mtune=native support for RISC-V in GCC, aligning it with other architectures that already support these auto-detection tuning flags. The patches do not yet handle RISC-V hybrid or asymmetric CPU core designs, and the maintainers hope for merge ahead of the GCC 17 release.

_Track GCC RISC-V toolchain changes like this on daily.dev before pinning a compiler version for your build._

### Which RISC-V CPU cores get improved identification in the new GCC native tuning patches?

The patch series improves GCC's identification of the SiFive P550, P870-D, and U74 cores, as well as the SpacemiT X60, X100, and A100 cores, as part of adding -mcpu=native and -mtune=native support for RISC-V.

_Developers targeting specific RISC-V cores can follow compiler support updates like this via daily.dev._

## Similar posts on daily.dev

- [GCC 17 Now Supports Using -mtune=native -mcpu=native On RISC-V](https://daily.dev/posts/gcc-17-now-supports-using--mtune-native--mcpu-native-on-risc-v-djbpasrzx) · Phoronix · 0 upvotes · 0 comments
- [Hygon C86-4G CPU Support Added To The GCC 17 Compiler](https://daily.dev/posts/hygon-c86-4g-cpu-support-added-to-the-gcc-17-compiler-wkn6rpfvp) · Phoronix · 0 upvotes · 0 comments
- [GCC 17 Compiler Lands SpacemiT X100 Core Targeting](https://daily.dev/posts/gcc-17-compiler-lands-spacemit-x100-core-targeting-21vwfvqan) · Phoronix · 0 upvotes · 0 comments
- [Someone changed one line in the GCC compiler and scored a 12% improvement on modern Intel and AMD chips](https://daily.dev/posts/someone-changed-one-line-in-the-gcc-compiler-and-scored-a-12-improvement-on-modern-intel-and-amd-ch-d1otkz2tx) · XDA Developers · 0 upvotes · 0 comments
- [Building a Host-Tuned GCC to Make GCC Compile Faster](https://daily.dev/posts/building-a-host-tuned-gcc-to-make-gcc-compile-faster-wt5gmdqdk) · Lobsters · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"GCC Patches Added -mcpu=native -mtune=native Support For RISC-V","url":"https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r"},"datePublished":"2026-08-26T10:13:40.399Z","dateModified":"2026-08-26T10:14:11.518Z","description":"A SiFive engineer, Kito Cheng, has submitted patches to GCC adding -mcpu=native and -mtune=native support for RISC-V, bringing the architecture in line with...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12aca2d753047395ab3d9ba0657d5969?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12aca2d753047395ab3d9ba0657d5969?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Phoronix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Phoronix","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6a26ba379dd64932830aa0c9803dd7ee","url":"https://daily.dev/sources/phoronix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Phoronix","item":"https://daily.dev/sources/phoronix"},{"@type":"ListItem","position":3,"name":"GCC Patches Added -mcpu=native -mtune=native Support For RISC-V"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/gcc-patches-added--mcpu-native--mtune-native-support-for-risc-v-7bldbxf6r#faq","mainEntity":[{"@type":"Question","name":"Does GCC support -mcpu=native and -mtune=native on RISC-V?","acceptedAnswer":{"@type":"Answer","text":"Not yet merged, but patches were posted by SiFive engineer Kito Cheng adding -mcpu=native and -mtune=native support for RISC-V in GCC, aligning it with other architectures that already support these auto-detection tuning flags. The patches do not yet handle RISC-V hybrid or asymmetric CPU core designs, and the maintainers hope for merge ahead of the GCC 17 release. Track GCC RISC-V toolchain changes like this on daily.dev before pinning a compiler version for your build."}},{"@type":"Question","name":"Which RISC-V CPU cores get improved identification in the new GCC native tuning patches?","acceptedAnswer":{"@type":"Answer","text":"The patch series improves GCC's identification of the SiFive P550, P870-D, and U74 cores, as well as the SpacemiT X60, X100, and A100 cores, as part of adding -mcpu=native and -mtune=native support for RISC-V. Developers targeting specific RISC-V cores can follow compiler support updates like this via daily.dev."}}]}
```

