Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
e25f1843
Commit
e25f1843
authored
Dec 04, 2010
by
Michael Beck
Browse files
Instead of panic() offer the native option only if running on x86 xpu.
[r28180]
parent
753110de
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_architecture.c
View file @
e25f1843
...
...
@@ -204,7 +204,10 @@ static const lc_opt_enum_int_items_t arch_items[] = {
{
"generic"
,
cpu_generic
},
{
"generic32"
,
cpu_generic
},
#ifdef NATIVE_X86
{
"native"
,
cpu_autodetect
},
#endif
{
NULL
,
0
}
};
...
...
@@ -749,12 +752,7 @@ static void autodetect_arch(void)
arch
=
auto_arch
;
opt_arch
=
auto_arch
;
}
#else
static
void
autodetect_arch
(
void
)
{
panic
(
"architecture autodetection only possible when compiling on target architecture"
);
}
#endif
#endif
/* NATIVE_X86 */
void
ia32_setup_cg_config
(
void
)
{
...
...
@@ -763,8 +761,10 @@ void ia32_setup_cg_config(void)
set_arch_costs
();
if
(
arch
==
0
)
#ifdef NATIVE_X86
if
(
arch
==
cpu_autodetect
)
autodetect_arch
();
#endif
c
->
optimize_size
=
opt_size
!=
0
;
/* on newer intel cpus mov, pop is often faster than leave although it has a
...
...
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