public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59588] New: Odd codes in ix86_option_override_internal
@ 2013-12-23 22:55 hjl.tools at gmail dot com
2013-12-24 19:57 ` [Bug target/59588] " hjl.tools at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-23 22:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59588
Bug ID: 59588
Summary: Odd codes in ix86_option_override_internal
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: ubizjak at gmail dot com
ix86_option_override_internal has
if (opts->x_ix86_arch_string)
opts->x_ix86_tune_string = opts->x_ix86_arch_string;
if (!opts->x_ix86_tune_string)
{
opts->x_ix86_tune_string = cpu_names[TARGET_CPU_DEFAULT];
ix86_tune_defaulted = 1;
}
/* opts->x_ix86_tune_string is set to opts->x_ix86_arch_string
or defaulted. We need to use a sensible tune option. */
if (!strcmp (opts->x_ix86_tune_string, "generic")
|| !strcmp (opts->x_ix86_tune_string, "x86-64")
|| !strcmp (opts->x_ix86_tune_string, "i686"))
{
opts->x_ix86_tune_string = "generic";
}
Why is opts->x_ix86_tune_string changed to "generic". If
opts->x_ix86_tune_string is "generic". there is no need to
change it to "generic". If an option is valid for -march=,
it should also be valid for -mtune.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59588] Odd codes in ix86_option_override_internal
2013-12-23 22:55 [Bug target/59588] New: Odd codes in ix86_option_override_internal hjl.tools at gmail dot com
@ 2013-12-24 19:57 ` hjl.tools at gmail dot com
2013-12-24 20:01 ` hjl.tools at gmail dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-24 19:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59588
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-12-24
Ever confirmed|0 |1
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
-mtune=i686 is also ignored:
[hjl@gnu-6 gcc]$ cat /tmp/t.c
#ifndef __tune_i686__
#error "bad"
#endif
[hjl@gnu-6 gcc]$ gcc -m32 -S /tmp/t.c -mtune=i686
/tmp/t.c:2:2: error: #error "bad"
#error "bad"
^
[hjl@gnu-6 gcc]$
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59588] Odd codes in ix86_option_override_internal
2013-12-23 22:55 [Bug target/59588] New: Odd codes in ix86_option_override_internal hjl.tools at gmail dot com
2013-12-24 19:57 ` [Bug target/59588] " hjl.tools at gmail dot com
@ 2013-12-24 20:01 ` hjl.tools at gmail dot com
2013-12-24 20:43 ` [Bug target/59588] No need to check "generic" nor change "i686" for -mtune= hjl.tools at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-24 20:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59588
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
-march=i686 is also ignored:
[hjl@gnu-6 gcc]$ gcc -m32 -S /tmp/t.c -march=i686
/tmp/t.c:2:2: error: #error "bad"
#error "bad"
^
[hjl@gnu-6 gcc]$
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59588] No need to check "generic" nor change "i686" for -mtune=
2013-12-23 22:55 [Bug target/59588] New: Odd codes in ix86_option_override_internal hjl.tools at gmail dot com
2013-12-24 19:57 ` [Bug target/59588] " hjl.tools at gmail dot com
2013-12-24 20:01 ` hjl.tools at gmail dot com
@ 2013-12-24 20:43 ` hjl.tools at gmail dot com
2013-12-26 16:11 ` hjl at gcc dot gnu.org
2013-12-26 19:16 ` hjl.tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-24 20:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59588
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.9.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59588] No need to check "generic" nor change "i686" for -mtune=
2013-12-23 22:55 [Bug target/59588] New: Odd codes in ix86_option_override_internal hjl.tools at gmail dot com
` (2 preceding siblings ...)
2013-12-24 20:43 ` [Bug target/59588] No need to check "generic" nor change "i686" for -mtune= hjl.tools at gmail dot com
@ 2013-12-26 16:11 ` hjl at gcc dot gnu.org
2013-12-26 19:16 ` hjl.tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: hjl at gcc dot gnu.org @ 2013-12-26 16:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59588
--- Comment #3 from hjl at gcc dot gnu.org <hjl at gcc dot gnu.org> ---
Author: hjl
Date: Thu Dec 26 16:10:55 2013
New Revision: 206213
URL: http://gcc.gnu.org/viewcvs?rev=206213&root=gcc&view=rev
Log:
Don't check/change generic/i686 tuning
gcc/
PR target/59588
* config/i386/i386.c (ix86_option_override_internal): Don't
check generic tuning. Don't change i686 tuning.
gcc/testsuite/
PR target/59588
* gcc.target/i386/pr59588-1.c: New file.
* gcc.target/i386/pr59588-2.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.target/i386/pr59588-1.c
trunk/gcc/testsuite/gcc.target/i386/pr59588-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/i386/i386.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/59588] No need to check "generic" nor change "i686" for -mtune=
2013-12-23 22:55 [Bug target/59588] New: Odd codes in ix86_option_override_internal hjl.tools at gmail dot com
` (3 preceding siblings ...)
2013-12-26 16:11 ` hjl at gcc dot gnu.org
@ 2013-12-26 19:16 ` hjl.tools at gmail dot com
4 siblings, 0 replies; 6+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-26 19:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59588
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed on trunk. No plan to backport to release branches.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-12-26 19:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-23 22:55 [Bug target/59588] New: Odd codes in ix86_option_override_internal hjl.tools at gmail dot com
2013-12-24 19:57 ` [Bug target/59588] " hjl.tools at gmail dot com
2013-12-24 20:01 ` hjl.tools at gmail dot com
2013-12-24 20:43 ` [Bug target/59588] No need to check "generic" nor change "i686" for -mtune= hjl.tools at gmail dot com
2013-12-26 16:11 ` hjl at gcc dot gnu.org
2013-12-26 19:16 ` hjl.tools at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).