This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc/unwind-pe.h broken


Marco Trudel wrote:
Hello Andreas

Your latest patch to unwind-pe.h breaks at least canadian cross-compilation host=mingw target=mingw:

In file included from /usr/local/src/gcc/libgcc/../gcc/unwind-dw2.c:40:
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:133: error: expected declaration specifiers or '...' before '_uleb128_t'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h: In function 'read_uleb128':
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:137: error: '_uleb128_t' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:137: error: (Each undeclared identifier is reported only once
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:137: error: for each function it appears in.)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:137: error: expected ';' before 'result'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:139: error: 'result' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:143: error: expected ')' before 'byte'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:148: error: 'val' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h: At top level:
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:155: error: expected declaration specifiers or '...' before '_sleb128_t'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h: In function 'read_sleb128':
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:159: error: '_uleb128_t' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:159: error: expected ';' before 'result'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:161: error: 'result' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:165: error: expected ')' before 'byte'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:172: error: expected ')' before numeric constant
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:174: error: 'val' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:174: error: '_sleb128_t' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:174: error: expected ';' before 'result'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h: In function 'read_encoded_value_with_base':
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:218: error: '_uleb128_t' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:218: error: expected ';' before 'tmp'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:219: error: 'tmp' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:219: error: too many arguments to function 'read_uleb128'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:226: error: '_sleb128_t' undeclared (first use in this function)
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:226: error: expected ';' before 'tmp'
/usr/local/src/gcc/libgcc/../gcc/unwind-pe.h:227: error: too many arguments to function 'read_sleb128'

Addition: I had to revert the changes of these files to make the build work again:
- gcc/unwind-pe.h
- libstdc++-v3/libsupc++/eh_personality.cc
- libjava/exception.cc
- gcc/unwind-c.c
- gcc/unwind-dw2-fde.c


I can try patches if you need to verify them.

thanks
Marco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]