[5/9] nvptx: Re-enable 'gcc.dg/special/weak-2.c'

Message ID 20221202120315.803120-6-thomas@codesourcery.com
State Committed
Headers
Series [1/9] nvptx: Re-enable 'gcc.c-torture/compile/20080721-1.c' |

Commit Message

Thomas Schwinge Dec. 2, 2022, 12:03 p.m. UTC
  PASSes with:

    $ ptxas --version
    ptxas: NVIDIA (R) Ptx optimizing assembler
    Copyright (c) 2005-2018 NVIDIA Corporation
    Built on Sun_Sep__9_21:06:46_CDT_2018
    Cuda compilation tools, release 10.0, V10.0.145

..., and execution with 'Driver Version: 361.93.02'.

        gcc/testsuite/
        * gcc.dg/special/weak-2.c: Re-enable for nvptx.
---
 gcc/testsuite/gcc.dg/special/weak-2.c | 4 ----
 1 file changed, 4 deletions(-)

--
2.35.1

-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
  

Patch

diff --git a/gcc/testsuite/gcc.dg/special/weak-2.c b/gcc/testsuite/gcc.dg/special/weak-2.c
index b8133e2d7d95..b93a8ef9a529 100644
--- a/gcc/testsuite/gcc.dg/special/weak-2.c
+++ b/gcc/testsuite/gcc.dg/special/weak-2.c
@@ -2,10 +2,6 @@ 
 /* { dg-require-weak "" } */
 /* { dg-additional-sources "weak-2a.c weak-2b.c" } */

-/* NVPTX's implementation of weak is broken when a strong symbol is in
-   a later object file than the weak definition.   */
-/* { dg-skip-if "" { "nvptx-*-*" } } */
-
 #include <stdlib.h>

 extern int foo(void);