public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/55816] New: Options from command line are added to target arch attribute eventhough they are in contradiction with that target
@ 2012-12-27 16:16 aivchenk at gmail dot com
2021-08-15 5:42 ` [Bug target/55816] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: aivchenk at gmail dot com @ 2012-12-27 16:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55816
Bug #: 55816
Summary: Options from command line are added to target arch
attribute eventhough they are in contradiction with
that target
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: aivchenk@gmail.com
CC: aivchenk@gmail.com, hjl.tools@gmail.com,
ubizjak@gmail.com
Target: i?86-*-* x86_64-*-*
On x86 android gcc we have -msse3 turned on by default, that leads
gcc/testsuite/gcc.target/i386/funcspec-10.c to fail:
extern int foo (int) __attribute__((__target__("arch=i386")));
int
foo (int x)
{
if (x < 0)
x = 1;
return x;
}
because compiler produces CMOV, eventhough foo has been declared as arch=i386.
The problem is that isa option from command line (-msse3) is added to arch=i386
within this function.
I believe that there could be other cases when that would be more critical.
Should we turn off enabled from command line isa's inside the function with
"target arch" attribute, if those isa's are in contradiction with that arch?
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/55816] Options from command line are added to target arch attribute eventhough they are in contradiction with that target
2012-12-27 16:16 [Bug target/55816] New: Options from command line are added to target arch attribute eventhough they are in contradiction with that target aivchenk at gmail dot com
@ 2021-08-15 5:42 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-15 5:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55816
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 53228.
*** This bug has been marked as a duplicate of bug 53228 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-15 5:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-27 16:16 [Bug target/55816] New: Options from command line are added to target arch attribute eventhough they are in contradiction with that target aivchenk at gmail dot com
2021-08-15 5:42 ` [Bug target/55816] " pinskia at gcc dot gnu.org
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).