This is the mail archive of the gcc-patches@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]

Re: eh merge complete


I get the following warnings for unwind-*.c on sparc-sun-solaris2.8
but not on alphaev6-unknown-linux-gnu:

../../gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/unwind-dw2.c:219: warning: implicit declaration of function `strlen'
../../gcc/unwind-dw2-fde.c: In function `get_cie_encoding':
../../gcc/unwind-dw2-fde.c:233: warning: implicit declaration of function `strlen'
../../gcc/unwind-dw2.c: In function `execute_cfa_program':
../../gcc/unwind-dw2.c:776: warning: implicit declaration of function `alloca'
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:881: warning: implicit declaration of function `memset'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1098: warning: implicit declaration of function `memcpy'

On solaris2.8, mem* and str* are declared in <string.h>, and alloca is
decalred in <alloca.h>.  I looked at the unwind-*.c and unwind-*.h files,
but I couldn't see where to add the includes of these files.

Brad Lucier


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