public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56056] New: internal compiler error: in get_builtin_code_for_version, at config/i386/i386.c:28686
@ 2013-01-21 1:28 crrodriguez at opensuse dot org
2013-01-23 16:27 ` [Bug target/56056] [4.8 Regression] " rguenth at gcc dot gnu.org
2013-01-23 16:38 ` jakub at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: crrodriguez at opensuse dot org @ 2013-01-21 1:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56056
Bug #: 56056
Summary: internal compiler error: in
get_builtin_code_for_version, at
config/i386/i386.c:28686
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: crrodriguez@opensuse.org
cat countleadingzeros.cpp
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int foo (unsigned int x)
{
// The default version of foo.
return __builtin_clz(x);
}
// note, invalid attribute
__attribute__ ((target ("march=core-avx2")))
int foo (unsigned int x)
{
return __builtin_clz(x);
}
int main(void)
{
srand(time(NULL));
return foo(rand());
}
g++-4.8 countleadingzeros.cpp
countleadingzeros.cpp:12:24: error: attribute(target("march=core-avx2")) is
unknown
int foo (unsigned int x)
^
countleadingzeros.cpp: In function ‘int main()’:
countleadingzeros.cpp:21:22: error: attribute(target("march=core-avx2")) is
unknown
return foo(rand());
^
countleadingzeros.cpp:21:22: internal compiler error: in
get_builtin_code_for_version, at config/i386/i386.c:28686
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.
rpm -q gcc48
gcc48-4.8.0_20130117-2.1.x86_64
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/56056] [4.8 Regression] internal compiler error: in get_builtin_code_for_version, at config/i386/i386.c:28686
2013-01-21 1:28 [Bug c++/56056] New: internal compiler error: in get_builtin_code_for_version, at config/i386/i386.c:28686 crrodriguez at opensuse dot org
@ 2013-01-23 16:27 ` rguenth at gcc dot gnu.org
2013-01-23 16:38 ` jakub at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-01-23 16:27 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56056
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |error-recovery,
| |ice-on-invalid-code
Target Milestone|--- |4.8.0
Summary|internal compiler error: in |[4.8 Regression] internal
|get_builtin_code_for_versio |compiler error: in
|n, at |get_builtin_code_for_versio
|config/i386/i386.c:28686 |n, at
| |config/i386/i386.c:28686
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/56056] [4.8 Regression] internal compiler error: in get_builtin_code_for_version, at config/i386/i386.c:28686
2013-01-21 1:28 [Bug c++/56056] New: internal compiler error: in get_builtin_code_for_version, at config/i386/i386.c:28686 crrodriguez at opensuse dot org
2013-01-23 16:27 ` [Bug target/56056] [4.8 Regression] " rguenth at gcc dot gnu.org
@ 2013-01-23 16:38 ` jakub at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-01-23 16:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56056
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |DUPLICATE
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-23 16:38:31 UTC ---
With the latest patch for PR55742, this doesn't ICE, but is properly rejected.
Even with added __attribute__((target ("default"))) before the first function
that is now required for the default mv version, only works if you fix up the
second target attribute.
*** This bug has been marked as a duplicate of bug 55742 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-23 16:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-21 1:28 [Bug c++/56056] New: internal compiler error: in get_builtin_code_for_version, at config/i386/i386.c:28686 crrodriguez at opensuse dot org
2013-01-23 16:27 ` [Bug target/56056] [4.8 Regression] " rguenth at gcc dot gnu.org
2013-01-23 16:38 ` jakub 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).