public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40419] __attribute__((mips16)) is broken on trunk.
       [not found] <bug-40419-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-09 22:15 ` meadori at codesourcery dot com
  2012-01-18 10:02 ` rsandifo at gcc dot gnu.org
  1 sibling, 0 replies; 6+ messages in thread
From: meadori at codesourcery dot com @ 2012-01-09 22:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40419

Meador Inge <meadori at codesourcery dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |meadori at codesourcery dot
                   |                            |com

--- Comment #5 from Meador Inge <meadori at codesourcery dot com> 2012-01-09 22:14:11 UTC ---
I believe this was fixed by pr47564.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/40419] __attribute__((mips16)) is broken on trunk.
       [not found] <bug-40419-4@http.gcc.gnu.org/bugzilla/>
  2012-01-09 22:15 ` [Bug target/40419] __attribute__((mips16)) is broken on trunk meadori at codesourcery dot com
@ 2012-01-18 10:02 ` rsandifo at gcc dot gnu.org
  1 sibling, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu.org @ 2012-01-18 10:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40419

rsandifo@gcc.gnu.org <rsandifo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #6 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 2012-01-18 09:34:48 UTC ---
Yeah, seems to have been working for a while.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/40419] __attribute__((mips16)) is broken on trunk.
  2009-06-11 21:02 [Bug target/40419] New: " ramana at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-06-05  7:28 ` rsandifo at gcc dot gnu dot org
@ 2010-06-05 11:44 ` zadeck at naturalbridge dot com
  3 siblings, 0 replies; 6+ messages in thread
From: zadeck at naturalbridge dot com @ 2010-06-05 11:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from zadeck at naturalbridge dot com  2010-06-05 11:44 -------
richard, 

the reason that i went into such details about my port in (2) was to get the
reinit_regs issue out in a place so that if someone decided to take on this
beast, they had all of the issues in front of them.

kenny


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40419


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/40419] __attribute__((mips16)) is broken on trunk.
  2009-06-11 21:02 [Bug target/40419] New: " ramana at gcc dot gnu dot org
  2009-06-11 21:29 ` [Bug target/40419] " ramana at gcc dot gnu dot org
  2010-06-04 17:18 ` zadeck at naturalbridge dot com
@ 2010-06-05  7:28 ` rsandifo at gcc dot gnu dot org
  2010-06-05 11:44 ` zadeck at naturalbridge dot com
  3 siblings, 0 replies; 6+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2010-06-05  7:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rsandifo at gcc dot gnu dot org  2010-06-05 07:27 -------
Kenny, I too don't like target_reinit, and FWIW
I fought the same battle before the patch was submitted.
The argument then, and I suspect the argument now,
is that although the function is horribly inefficient,
it still performs a useful function.  The best way of
making it efficient (the argument goes) is to gradually
wean GCC off using global variables for target-specific
stuff.  And as that happens, target_reinit would get
quicker for all targets.

As I remember it, even those supporting target_reinit
didn't really _like_ the thing, but simply accepted
it as the best we could do without major restructuring.

As far as the IRA thing goes: as we talked about elsewhere,
that's simply a bug.  target_reinit should call ira_init.
(Remember that target_reinit predates IRA, so this certainly
isn't the fault of anyone on the "target_reinit side".
It's just one of those things that happens, and needs
to be fixed when the problem shows up.)

What you're doing is probably fine for your port,
but other targets (like MIPS for the MIPS16 switch)
need to do more than modify registers.  Things like
rtx costs change too, and those costs are cached
in various global variables.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40419


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/40419] __attribute__((mips16)) is broken on trunk.
  2009-06-11 21:02 [Bug target/40419] New: " ramana at gcc dot gnu dot org
  2009-06-11 21:29 ` [Bug target/40419] " ramana at gcc dot gnu dot org
@ 2010-06-04 17:18 ` zadeck at naturalbridge dot com
  2010-06-05  7:28 ` rsandifo at gcc dot gnu dot org
  2010-06-05 11:44 ` zadeck at naturalbridge dot com
  3 siblings, 0 replies; 6+ messages in thread
From: zadeck at naturalbridge dot com @ 2010-06-04 17:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from zadeck at naturalbridge dot com  2010-06-04 17:18 -------
I would just like to say that i think that target_reinit should be removed.  
It is nothing but trouble.   We tried to use it on our private port and it was
very slow and most of the time ended up crashing.   Furthermore, when we got
down to the end, we discovered that in fact it does not end up calling
everything that was needed to reinitialize ira.   

Our platform has a register architecture like a sparc but it has a variable
number of ins and outs.   The exact number of ins depends on the function
signature and the number of outs depends on the signatures of the callees.   
So we tried using target_reinit to reset the register allocator after we had
seen the caller to the function and all of the callees.   

in the end we added a special pass that does an reinit_regs () before ira.  
This sped up our compiler by about 4x.  (i.e target_reinit is not just buggy,
it is slow.)

Note that target_reinit does not do a reinit_regs and so it actually does not
really reinitialize the target, at least as far as ira is concerned.  


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40419


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/40419] __attribute__((mips16)) is broken on trunk.
  2009-06-11 21:02 [Bug target/40419] New: " ramana at gcc dot gnu dot org
@ 2009-06-11 21:29 ` ramana at gcc dot gnu dot org
  2010-06-04 17:18 ` zadeck at naturalbridge dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-06-11 21:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ramana at gcc dot gnu dot org  2009-06-11 21:29 -------
Adding Richard and Sandra to the CC list.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sandra at gcc dot gnu dot
                   |                            |org, rsandifo at gcc dot gnu
                   |                            |dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40419


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-01-18  9:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40419-4@http.gcc.gnu.org/bugzilla/>
2012-01-09 22:15 ` [Bug target/40419] __attribute__((mips16)) is broken on trunk meadori at codesourcery dot com
2012-01-18 10:02 ` rsandifo at gcc dot gnu.org
2009-06-11 21:02 [Bug target/40419] New: " ramana at gcc dot gnu dot org
2009-06-11 21:29 ` [Bug target/40419] " ramana at gcc dot gnu dot org
2010-06-04 17:18 ` zadeck at naturalbridge dot com
2010-06-05  7:28 ` rsandifo at gcc dot gnu dot org
2010-06-05 11:44 ` zadeck at naturalbridge dot com

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).