public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23541] New: all error messages produce segfault ICE
@ 2005-08-24  5:37 fgccbz0 at greynode dot net
  2005-08-24 11:44 ` [Bug other/23541] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: fgccbz0 at greynode dot net @ 2005-08-24  5:37 UTC (permalink / raw)
  To: gcc-bugs

when compiled not just to target sparc64 but also to be hosted on sparc64
instead of just sparc, the resulting compiler segfaults most of the time when it
tries to print error messages. For instance, when compiling a file containing
just a bogus preprocessor directive, like so:

#asdfadfa

The problem seems to be that gcc-4.0.1/intl/dcgettext.c:53 can't see a
declaration of libintl_dcgettext, and so the result of the call is cast to an
int, losing its high word, before being returned.  I think
gcc-4.0.1/intl/gettextP.h:213 has caused libgnuintl.h to provide only macros
instead of declarations. Perhaps in libgnuintl.h the various extern libintl_FOO
declarations should be outside of the #ifdef _INTL_REDIRECT_INLINE conditionals,
so that even when using _INTL_REDIRECT_MACROS and not INTL_REDIRECT_INLINE, the
declarations of the libintl_FOO are published to the includer.

Using a handy 32-bit hosted gcc-4.0.1 I had already built, I built using
./configure --enable-languages=c,c++ --with-gnu-as --with-as=BLAH/bin/as
--with-gnu-ld --with-ld=BLAH/bin/ld sparc64-sun-solaris2.9

-- 
           Summary: all error messages produce segfault ICE
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fgccbz0 at greynode dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc64-sun-solaris2.9
  GCC host triplet: sparc64-sun-solaris2.9
GCC target triplet: sparc64-sun-solaris2.9


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


^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <bug-23541-6526@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-01-04  9:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-24  5:37 [Bug c/23541] New: all error messages produce segfault ICE fgccbz0 at greynode dot net
2005-08-24 11:44 ` [Bug other/23541] " pinskia at gcc dot gnu dot org
2005-08-25 13:35 ` fgccbz0 at greynode dot net
2005-08-25 13:47 ` pinskia at gcc dot gnu dot org
2005-08-25 14:37 ` fgccbz0 at greynode dot net
2005-08-25 21:48 ` fgccbz0 at greynode dot net
2005-08-26 17:35 ` pinskia at gcc dot gnu dot org
2005-08-29 13:39 ` fgccbz0 at greynode dot net
2005-08-30  9:42 ` ebotcazou at gcc dot gnu dot org
     [not found] <bug-23541-6526@http.gcc.gnu.org/bugzilla/>
2005-10-15 16:40 ` ebotcazou at gcc dot gnu dot org
2005-10-15 16:40 ` ebotcazou at gcc dot gnu dot org
2006-01-04  9:16 ` ebotcazou at gcc dot gnu dot org
2006-01-04  9:17 ` ebotcazou at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).