public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: william@nscs.fast.net To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: target/9603: SCO 5 build of gcc-3.2.2 fails with i386.c: line 927: error: undefined symbol: DEFAULT_PCC_STRUCT_RETURN Date: Fri, 14 Feb 2003 23:56:00 -0000 [thread overview] Message-ID: <20030214235600.23745.qmail@sources.redhat.com> (raw) The following reply was made to PR target/9603; it has been noted by GNATS. From: william@nscs.fast.net To: florent.pillet@wanadoo.fr Cc: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org Subject: Re: target/9603: SCO 5 build of gcc-3.2.2 fails with i386.c: line 927: error: undefined symbol: DEFAULT_PCC_STRUCT_RETURN Date: Fri, 14 Feb 2003 18:52:15 EST I think that the problem was due using DEFAULT_PCC_STRUCT_RETURN in an os-independent file (i386.c) and not supplying definitions in all of the os-dependent places that use it. SCO OpenServer is Pentium-based. I submitted a patch for the SCO-specific header sco5.h. http://gcc.gnu.org/ml/gcc-bugs/2003-02/msg00300.html Someone else who had this problem with Solaris/Intel submitted a patch for i386.h. I think that most i386 builds eventually include i386.h eventually. http://gcc.gnu.org/ml/gcc-bugs/2003-02/msg00282.html I think that the each operating system needs a separate patch in its os-specific header because the value of the macro depends on the operating system specific rules on whether functions can return structures and unions in registers instead of memory. It is possible that iBCS2 defines this and applies to all i386 environments, so one value might work for everything. It is my theory that changes like this are someone's subtle method of finding out which build targets can be deprecated... Good luck with your Darwin-hosted i386 cross-compile! It sounds painful -- I'm afraid to ask why you need to do it. William http://williambader.com
next reply other threads:[~2003-02-14 23:56 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-14 23:56 william [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-03-29 10:36 ebotcazou 2003-02-26 14:36 John Hughes 2003-02-14 23:26 Florent Pillet 2003-02-06 21:26 william
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030214235600.23745.qmail@sources.redhat.com \ --to=william@nscs.fast.net \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).