This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug translation/24039] cpp segfaults when a non-existent include is encountered
- From: "heas at shrubbery dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2005 20:08:01 -0000
- Subject: [Bug translation/24039] cpp segfaults when a non-existent include is encountered
- References: <20050923180213.24039.heas@shrubbery.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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