https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65481

            Bug ID: 65481
           Summary: _Pragma GCC dependency broken on powerpc64
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org

The gcc.dg/cpp/_Pragma3.c test is failing on powerpc64 but passes on
powerpc64le.  The following test case demonstrates the same problem that causes
the test failure.  It looks like the timestamp computation is broken on this
target.  GCC 4.8.3 has the same problem.

$ cat t.c && touch t.h && stat t.c t.h && /build/gcc-5.0/gcc/xgcc
-B/build/gcc-5.0/gcc -ansi -pedantic-errors -E -o/dev/null t.c
#define GCC_PRAGMA(x) _Pragma (#x)
GCC_PRAGMA(GCC dependency "t.h")
  File: ‘t.c’
  Size: 68            Blocks: 8          IO Block: 65536  regular file
Device: fd00h/64768d    Inode: 69928678    Links: 1
Access: (0664/-rw-rw-r--)  Uid: (25066/  msebor)   Gid: (25066/  msebor)
Context: unconfined_u:object_r:default_t:s0
Access: 2015-03-19 19:55:32.668667450 -0400
Modify: 2015-03-19 19:54:40.448639710 -0400
Change: 2015-03-19 19:54:40.468639721 -0400
 Birth: -
  File: ‘t.h’
  Size: 0             Blocks: 0          IO Block: 65536  regular empty file
Device: fd00h/64768d    Inode: 69928674    Links: 1
Access: (0664/-rw-rw-r--)  Uid: (25066/  msebor)   Gid: (25066/  msebor)
Context: unconfined_u:object_r:default_t:s0
Access: 2015-03-19 19:56:02.508682213 -0400
Modify: 2015-03-19 19:56:02.508682213 -0400
Change: 2015-03-19 19:56:02.508682213 -0400
 Birth: -
t.c:2:16: warning: current file is older than t.h
 GCC_PRAGMA(GCC dependency "t.h")
                ^

Reply via email to