From: Sandra Loosemore <sandra@codesourcery.com>
To: David Daney <ddaney@avtrex.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>,
Richard Sandiford <richard@codesourcery.com>
Subject: [PATCH] Re: MIPS support for __builtin_flush_icache() breaks -mips16
Date: Mon, 30 Jul 2007 12:53:00 -0000 [thread overview]
Message-ID: <46ADC92E.1000506@codesourcery.com> (raw)
In-Reply-To: <46AD5781.7080900@avtrex.com>
[-- Attachment #1: Type: text/plain, Size: 948 bytes --]
David Daney wrote:
> Sandra Loosemore wrote:
>> Now that mainline HEAD is buildable on MIPS again, I've observed that
>> this patch
>>
>> http://gcc.gnu.org/ml/gcc-patches/2007-07/msg01026.html
>>
>> causes failures with -mips16, e.g. on
>> gcc.c-torture/compile/20050122-2.c.
>
> That makes sense to me. However I am have never tested mips16.
>
> There are several options:
>
> 1) Tell me how you configured and tested. I think one of my boards will
> do mips16 so I could probably test it if I hacked around a little.
>
> 2) You could prepare a patch and test with that change as it seems that
> you are able to do mips16 testing.
Well, the answer to 1) is that I'm building mipsisa32r2-elfoabi and testing
using the GDB simulator. But, if you're not set up to do this, 2) is probably
easier all around, so I built and tested the attached patch overnight, and
verified that it fixes the MIPS16 regressions.
OK to commit?
-Sandra
[-- Attachment #2: synci.log --]
[-- Type: text/x-log, Size: 128 bytes --]
2007-07-30 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* config/mips/mips.h (ISA_HAS_SYNCI): Add !TARGET_MIPS16 test.
[-- Attachment #3: synci.patch --]
[-- Type: text/x-patch, Size: 596 bytes --]
Index: gcc/config/mips/mips.h
===================================================================
*** gcc/config/mips/mips.h (revision 127056)
--- gcc/config/mips/mips.h (working copy)
*************** extern const struct mips_rtx_cost_data *
*** 819,825 ****
|| TARGET_MIPS5500)
/* ISA includes synci, jr.hb and jalr.hb. */
! #define ISA_HAS_SYNCI ISA_MIPS32R2
\f
/* Add -G xx support. */
--- 819,825 ----
|| TARGET_MIPS5500)
/* ISA includes synci, jr.hb and jalr.hb. */
! #define ISA_HAS_SYNCI (ISA_MIPS32R2 && !TARGET_MIPS16)
\f
/* Add -G xx support. */
next prev parent reply other threads:[~2007-07-30 11:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-30 3:15 Sandra Loosemore
2007-07-30 7:54 ` David Daney
2007-07-30 12:53 ` Sandra Loosemore [this message]
2007-07-31 7:33 ` [PATCH] " Richard Sandiford
2007-07-31 12:11 ` Sandra Loosemore
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=46ADC92E.1000506@codesourcery.com \
--to=sandra@codesourcery.com \
--cc=ddaney@avtrex.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=richard@codesourcery.com \
/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: link
Be 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).