* [patch]: Fix bootstrap failure on i386-pc-solaris2 for unused statics
@ 2008-05-22 21:56 Kai Tietz
2008-05-22 21:59 ` Richard Guenther
0 siblings, 1 reply; 3+ messages in thread
From: Kai Tietz @ 2008-05-22 21:56 UTC (permalink / raw)
To: GCC Patches
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
Hello,
this fix the problems about unused static functions in i386.c (e.g
i386-pc-solaris2).
ChangeLog
* config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
(return_in_memory_64): Likewise.
(return_in_memory_ms_64): Likewise.
Ok for apply?
Cheers,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
[-- Attachment #2: unused_i386.txt --]
[-- Type: text/plain, Size: 891 bytes --]
Index: gcc/gcc/config/i386/i386.c
===================================================================
--- gcc.orig/gcc/config/i386/i386.c
+++ gcc/gcc/config/i386/i386.c
@@ -4840,7 +4840,7 @@ ix86_libcall_value (enum machine_mode mo
/* Return true iff type is returned in memory. */
-static int
+static int ATTRIBUTE_UNUSED
return_in_memory_32 (const_tree type, enum machine_mode mode)
{
HOST_WIDE_INT size;
@@ -4880,14 +4880,14 @@ return_in_memory_32 (const_tree type, en
return 0;
}
-static int
+static int ATTRIBUTE_UNUSED
return_in_memory_64 (const_tree type, enum machine_mode mode)
{
int needed_intregs, needed_sseregs;
return !examine_argument (mode, type, 1, &needed_intregs, &needed_sseregs);
}
-static int
+static int ATTRIBUTE_UNUSED
return_in_memory_ms_64 (const_tree type, enum machine_mode mode)
{
HOST_WIDE_INT size = int_size_in_bytes (type);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch]: Fix bootstrap failure on i386-pc-solaris2 for unused statics
2008-05-22 21:56 [patch]: Fix bootstrap failure on i386-pc-solaris2 for unused statics Kai Tietz
@ 2008-05-22 21:59 ` Richard Guenther
2008-05-23 8:59 ` Kai Tietz
0 siblings, 1 reply; 3+ messages in thread
From: Richard Guenther @ 2008-05-22 21:59 UTC (permalink / raw)
To: Kai Tietz; +Cc: GCC Patches
On Thu, May 22, 2008 at 11:02 PM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Hello,
>
> this fix the problems about unused static functions in i386.c (e.g
> i386-pc-solaris2).
>
> ChangeLog
>
> * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
> (return_in_memory_64): Likewise.
> (return_in_memory_ms_64): Likewise.
>
> Ok for apply?
This is ok if you tested that building a cross to one of these targets
doesn't produce
a warning for building config/i386/i386.c.
Thanks,
Richard.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch]: Fix bootstrap failure on i386-pc-solaris2 for unused statics
2008-05-22 21:59 ` Richard Guenther
@ 2008-05-23 8:59 ` Kai Tietz
0 siblings, 0 replies; 3+ messages in thread
From: Kai Tietz @ 2008-05-23 8:59 UTC (permalink / raw)
To: Richard Guenther; +Cc: GCC Patches
2008/5/22 Richard Guenther <richard.guenther@gmail.com>:
> On Thu, May 22, 2008 at 11:02 PM, Kai Tietz <ktietz70@googlemail.com> wrote:
>> Hello,
>>
>> this fix the problems about unused static functions in i386.c (e.g
>> i386-pc-solaris2).
>>
>> ChangeLog
>>
>> * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
>> (return_in_memory_64): Likewise.
>> (return_in_memory_ms_64): Likewise.
>>
>> Ok for apply?
>
> This is ok if you tested that building a cross to one of these targets
> doesn't produce
> a warning for building config/i386/i386.c.
>
> Thanks,
> Richard.
>
Successful bootstraped on i386-pc-solaris2.
Committed revision 135790.
Thanks,
Kai
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-23 6:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-22 21:56 [patch]: Fix bootstrap failure on i386-pc-solaris2 for unused statics Kai Tietz
2008-05-22 21:59 ` Richard Guenther
2008-05-23 8:59 ` Kai Tietz
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).