[Bug c++/81410] [5/6/7 Regression] -O3 breaks code

ro at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jul 22 15:11:00 GMT 2017


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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ro at gcc dot gnu.org

--- Comment #10 from Rainer Orth <ro at gcc dot gnu.org> ---
The new testcase FAILs on Solaris (and Dragonfly):

+FAIL: gcc.dg/vect/pr81410.c (test for excess errors)

output is:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/pr81410.c:6:19: error:
conflicting types for 'uint64_t'
In file included from /usr/include/sys/types.h:29:0,
                 from /usr/include/signal.h:15,
                 from
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/tree-vect.h:2,
                 from
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/vect/pr81410.c:4:
/usr/include/sys/int_types.h:76:28: note: previous declaration of 'uint64_t'
was here

+UNRESOLVED: gcc.dg/vect/pr81410.c -flto -ffat-lto-objects  scan-tree-dump vect 
"vectorized 1 loops"
+FAIL: gcc.dg/vect/pr81410.c -flto -ffat-lto-objects (test for excess errors)
+WARNING: gcc.dg/vect/pr81410.c -flto -ffat-lto-objects compilation failed to
pr
oduce executable
+WARNING: gcc.dg/vect/pr81410.c compilation failed to produce executable
+UNRESOLVED: gcc.dg/vect/pr81410.c scan-tree-dump vect "vectorized 1 loops"

I'm not sure how best to fix this: require stdint_types and include stdint.h or
rename the type.

  Rainer


More information about the Gcc-bugs mailing list