Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
gcc
Commits
9768698e
Commit
9768698e
authored
Dec 27, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not detect host automatically
parent
c418efb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
build.xml
build.xml
+3
-0
gcc-11.1.0-fix_host_detect.patch
gcc-11.1.0-fix_host_detect.patch
+27
-0
No files found.
build.xml
View file @
9768698e
...
@@ -111,6 +111,9 @@
...
@@ -111,6 +111,9 @@
<exec
executable=
"patch"
dir=
"${builddir}/gcc-11.1.0"
failonerror=
"true"
>
<exec
executable=
"patch"
dir=
"${builddir}/gcc-11.1.0"
failonerror=
"true"
>
<arg
line=
"-Np1 -i ${basedir}/packages/gcc/gcc-11.1.0-fix_fenv_t.patch"
/>
<arg
line=
"-Np1 -i ${basedir}/packages/gcc/gcc-11.1.0-fix_fenv_t.patch"
/>
</exec>
</exec>
<exec
executable=
"patch"
dir=
"${builddir}/gcc-11.1.0"
failonerror=
"true"
>
<arg
line=
"-Np1 -i ${basedir}/packages/gcc/gcc-11.1.0-fix_host_detect.patch"
/>
</exec>
<exec
executable=
"bash"
dir=
"${builddir}/gcc-11.1.0"
failonerror=
"true"
>
<exec
executable=
"bash"
dir=
"${builddir}/gcc-11.1.0"
failonerror=
"true"
>
<arg
value=
"-c"
/>
<arg
value=
"-c"
/>
<arg
value=
"sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' -e 's@/usr@/tools@g' -i gcc/config/linux.h"
/>
<arg
value=
"sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&@g' -e 's@/usr@/tools@g' -i gcc/config/linux.h"
/>
...
...
gcc-11.1.0-fix_host_detect.patch
0 → 100644
View file @
9768698e
diff -uNr gcc-11.1.0/gcc/config/aarch64/aarch64.h gcc-11.1.0-fix_host_detect/gcc/config/aarch64/aarch64.h
--- gcc-11.1.0/gcc/config/aarch64/aarch64.h 2021-04-27 20:00:13.000000000 +1000
+++ gcc-11.1.0-fix_host_detect/gcc/config/aarch64/aarch64.h 2025-11-17 10:38:36.782562378 +1100
@@ -1236,21 +1236,8 @@
#define MCPU_TO_MARCH_SPEC_FUNCTIONS \
{ "rewrite_mcpu", aarch64_rewrite_mcpu },
-#if defined(__aarch64__)
-extern const char *host_detect_local_cpu (int argc, const char **argv);
-#define HAVE_LOCAL_CPU_DETECT
-# define EXTRA_SPEC_FUNCTIONS \
- { "local_cpu_detect", host_detect_local_cpu }, \
- MCPU_TO_MARCH_SPEC_FUNCTIONS
-
-# define MCPU_MTUNE_NATIVE_SPECS \
- " %{march=native:%<march=native %:local_cpu_detect(arch)}" \
- " %{mcpu=native:%<mcpu=native %:local_cpu_detect(cpu)}" \
- " %{mtune=native:%<mtune=native %:local_cpu_detect(tune)}"
-#else
-# define MCPU_MTUNE_NATIVE_SPECS ""
-# define EXTRA_SPEC_FUNCTIONS MCPU_TO_MARCH_SPEC_FUNCTIONS
-#endif
+#define MCPU_MTUNE_NATIVE_SPECS ""
+#define EXTRA_SPEC_FUNCTIONS MCPU_TO_MARCH_SPEC_FUNCTIONS
#define ASM_CPU_SPEC \
MCPU_TO_MARCH_SPEC
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment