------- Comment #1 from jsm28 at gcc dot gnu dot org  2008-03-03 23:18 -------
I see the test failing on i686-mingw32, but it's more complicated than just
failing for the given warning.

The warning is given, and pruned by core DejaGnu's prune_warnings.  This means
that { dg-require-effective-target fpic } passes, and all tests using the -fPIC
option are allowed to run.  Most of them pass just fine.  This particular test,
however, expects a diagnostic which is missing (probably because Windows PIC is
different from the sort of PIC expected and so flag_pic is forced to 0 after
issuing the warning).  The actual failure is:

FAIL: gcc.target/i386/pic-1.c  (test for errors, line 11)

If the test is indeed inapplicable to Windows (if the asm is valid on Windows
and should not be diagnosed), the right solution would be to skip this test on
Windows targets.  The Windows target maintainers should be able to confirm the
correct fix.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-03-03 23:18:17
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31342

Reply via email to