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

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


------- 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


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