[Bug translation/24039] cpp segfaults when a non-existent include is encountered

heas at shrubbery dot net gcc-bugzilla@gcc.gnu.org
Thu Sep 29 20:08:00 GMT 2005


------- Additional Comments From heas at shrubbery dot net  2005-09-29 20:07 -------
Subject: Re:  cpp segfaults when a non-existent include is encountered

dgettext.c thinks that libintl_dcgettext returns an int.  Which I do not
understand, since it includes libintl.h which has:

# 163 "./libintl.h" 3 4
extern char *dcgettext (const char *__domainname, const char *__msgid, int __category) 


       __asm__ ("" "libintl_dcgettext");

but, I do not understand the __asm__ macro.

after hacking dgettext.c w/ a prototype, cc1 no longer cores and doesnt have
the sra instruction anymore.  and, gcc does complain about the virgin file:

gcc -c  -g -O0  -DHAVE_CONFIG_H  -I. -I../../gcc-4.1-20050917/intl ../../gcc-4.1-20050917/intl/dgettext.c
../../gcc-4.1-20050917/intl/dgettext.c: In function 'libintl_dgettext':
../../gcc-4.1-20050917/intl/dgettext.c:53: warning: return makes pointer from integer without a cast



-- 


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



More information about the Gcc-bugs mailing list