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
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
{
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
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
--- /dev/null
+/* PR target/88195 */
+/* { dg-options "-mptwrite" } */
+
+void
+foo (void)
+{
+ __builtin_ia32_ptwrite64 (1); /* { dg-warning "implicit declaration of function" "" { target ia32 } } */
+}