re PR target/88195 (misleading error message for unsupported builtin)
PR target/88195 * config/i386/i386.c (def_builtin2): If tcode == VOID_FTYPE_UINT64 and !TARGET_64BIT, return NULL_TREE. * gcc.target/i386/pr88195.c: New test. From-SVN: r266487
This commit is contained in:
parent
60d4173b75
commit
8b1f4e1f8a
4 changed files with 21 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
2018-11-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/88195
|
||||
* config/i386/i386.c (def_builtin2): If tcode == VOID_FTYPE_UINT64
|
||||
and !TARGET_64BIT, return NULL_TREE.
|
||||
|
||||
PR c++/86900
|
||||
* dwarf2out.c (secname_for_decl): For functions with
|
||||
DECL_SECTION_NAME if in_cold_section_p, try to return
|
||||
|
|
|
@ -30220,9 +30220,13 @@ def_builtin2 (HOST_WIDE_INT mask, const char *name,
|
|||
{
|
||||
tree decl = NULL_TREE;
|
||||
|
||||
ix86_builtins_isa[(int) code].isa2 = mask;
|
||||
if (tcode == VOID_FTYPE_UINT64)
|
||||
ix86_builtins_isa[(int) code].isa = OPTION_MASK_ISA_64BIT;
|
||||
{
|
||||
if (!TARGET_64BIT)
|
||||
return decl;
|
||||
ix86_builtins_isa[(int) code].isa = OPTION_MASK_ISA_64BIT;
|
||||
}
|
||||
ix86_builtins_isa[(int) code].isa2 = mask;
|
||||
|
||||
if (mask == 0
|
||||
|| (mask & ix86_isa_flags2) != 0
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
2018-11-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/88195
|
||||
* gcc.target/i386/pr88195.c: New test.
|
||||
|
||||
PR testsuite/88090
|
||||
* obj-c++.dg/attributes/method-nonnull-1.mm (my_size_t): New typedef.
|
||||
(MyArray::removeObjectAtIndex): Use my_size_t instead of size_t and
|
||||
|
|
8
gcc/testsuite/gcc.target/i386/pr88195.c
Normal file
8
gcc/testsuite/gcc.target/i386/pr88195.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* PR target/88195 */
|
||||
/* { dg-options "-mptwrite" } */
|
||||
|
||||
void
|
||||
foo (void)
|
||||
{
|
||||
__builtin_ia32_ptwrite64 (1); /* { dg-warning "implicit declaration of function" "" { target ia32 } } */
|
||||
}
|
Loading…
Add table
Reference in a new issue