public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: "John Hughes" <john@Calva.COM> 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: Wed, 26 Feb 2003 14:36:00 -0000 [thread overview] Message-ID: <20030226143601.7398.qmail@sources.redhat.com> (raw) The following reply was made to PR target/9603; it has been noted by GNATS. From: "John Hughes" <john@Calva.COM> To: <gcc-gnats@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>, <nobody@gcc.gnu.org>, <william@nscs.fast.net>, <gcc-prs@gcc.gnu.org> Cc: <michaud.bernard@ic.gc.ca> 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: Wed, 26 Feb 2003 15:32:50 +0100 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g cc&pr=9603 and http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g cc&pr=9583 This bug is also present on UnixWare 7.1.1 (aka svr5) and I'd guess all other versions of svr4. It's still present in the 2003/02/24 snapshot of 3.3. For svr4 systems the fix is: --- gcc-20030224/gcc/config/i386/sysv4.h.orig Sun Jun 16 23:13:11 2002 +++ gcc-20030224/gcc/config/i386/sysv4.h Wed Feb 26 14:35:08 2003 @@ -23,6 +23,14 @@ #define TARGET_VERSION fprintf (stderr, " (i386 System V Release 4)"); +#if 0 + +/* i386.h says: + + Do not use this macro to indicate that structures and unions + should always be returned in memory. You should instead use + `DEFAULT_PCC_STRUCT_RETURN' to indicate this. */ + /* The svr4 ABI for the i386 says that records and unions are returned in memory. */ @@ -30,6 +38,12 @@ #define RETURN_IN_MEMORY(TYPE) \ (TYPE_MODE (TYPE) == BLKmode \ || (VECTOR_MODE_P (TYPE_MODE (TYPE)) && int_size_in_bytes (TYPE) == 8)) + +#else + +#define DEFAULT_PCC_STRUCT_RETURN 1 + +#endif /* Output at beginning of assembler file. */ /* The .file command should always begin the output. */
next reply other threads:[~2003-02-26 14:36 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-02-26 14:36 John Hughes [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-03-29 10:36 ebotcazou 2003-02-14 23:56 william 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=20030226143601.7398.qmail@sources.redhat.com \ --to=john@calva.com \ --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).