This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/10129] [3.4 only] Ada bootstrap fails on PPC-Darwin - invalid assembler emitted - PIC related
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Apr 2004 17:32:36 -0000
- Subject: [Bug target/10129] [3.4 only] Ada bootstrap fails on PPC-Darwin - invalid assembler emitted - PIC related
- References: <20030318040600.10129.bosch@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mark at codesourcery dot com 2004-04-22 17:32 -------
Subject: Re: [3.4 only] Ada bootstrap fails on PPC-Darwin
- invalid assembler emitted - PIC related
pinskia at gcc dot gnu dot org wrote:
>------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-22 16:36 -------
>Mark, this is patch okay for the 3.4 branch, it has already been applied to the mainline, it
>fixes build Ada on powerpc-apple-darwin and has been in my tree for a long time.
>
>
Where is the version of the patch that was committed to mainline? Is it
the same patch that is in the PR?
That patch has a coding-style problem:
+ if (pic_labels_htab == NULL)
+ {
+ pic_labels_htab = htab_create_ggc (31, pic_named_entry_hash,
+ pic_entry_eq, NULL);
+ }
There should be no braces since there is only one dependent statement.
Furthermore:
+ /* I did not find the function in the hashtable, create a new label. */
is not a good comment; we avoid using "I" in comments in favor of "we".
Or, even better, just say "The function was not in the hash table so a
new label must be created."
As for applying the patch to the 3.4 branch, I will leave that up to a
Darwin maintainer. I'd probably be inclined not to apply it, but if a
Darwin maintainer thinks it's worthwhile, that's OK with me.
Thanks,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10129