public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/48971] New: sparc-rtems does not build
@ 2011-05-11 21:53 joel at gcc dot gnu.org
  2011-05-12  7:22 ` [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2 ebotcazou at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: joel at gcc dot gnu.org @ 2011-05-11 21:53 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: sparc-rtems does not build
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: joel@gcc.gnu.org


As of yesterday's SVN, gcc is very broken for sparc-rtems.  The generated gcc
can't even compile a simple autoconf probe.  I would expect that sparc-elf is
similarly broken.  This was built with a native built from the same source. 
That reports

gcc (GCC) 4.7.0 20110510 (experimental) [trunk revision 173623]


This is from config.log.  Let me know what else I can provide.

configure:3246: checking for suffix of object files
configure:3268: /home2/joel/build/b-sparc-gcc/./gcc/xgcc
-B/home2/joel/build/b-sparc-gcc/./gcc/ -nostdinc
-B/home2/joel/build/b-sparc-gcc/sparc-rtems4.11/soft/newlib/ -isystem
/home2/joel/build/b-sparc-gcc/sparc-rtems4.11/soft/newlib/targ-include -isystem
/users/joel/test-gcc/gcc-svn/newlib/libc/include
-B/home2/joel/build/b-sparc-gcc/sparc-rtems4.11/soft/libgloss/sparc
-L/home2/joel/build/b-sparc-gcc/sparc-rtems4.11/soft/libgloss/libnosys
-L/users/joel/test-gcc/gcc-svn/libgloss/sparc
-B/users/joel/test-gcc/install-svn/sparc-rtems4.11/bin/
-B/users/joel/test-gcc/install-svn/sparc-rtems4.11/lib/ -isystem
/users/joel/test-gcc/install-svn/sparc-rtems4.11/include -isystem
/users/joel/test-gcc/install-svn/sparc-rtems4.11/sys-include  -msoft-float -c
-g -O2  conftest.c >&5
conftest.c:1:0: internal compiler error: in setup_pressure_classes, at
ira.c:877
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
configure:3272: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3286: error: in
`/home2/joel/build/b-sparc-gcc/sparc-rtems4.11/soft/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


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

* [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2
  2011-05-11 21:53 [Bug bootstrap/48971] New: sparc-rtems does not build joel at gcc dot gnu.org
@ 2011-05-12  7:22 ` ebotcazou at gcc dot gnu.org
  2011-05-12 16:30 ` law at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-05-12  7:22 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |sparc-*-*
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|                            |2011.05.12 06:56:03
          Component|bootstrap                   |rtl-optimization
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
     Ever Confirmed|0                           |1
            Summary|sparc-rtems does not build  |[4.7 regression] ICE with
                   |                            |-msoft-float -O2
           Severity|critical                    |normal

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-05-12 06:56:03 UTC ---
This is -msoft-float though.  Again recent IRA changes I'm afraid...


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

* [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2
  2011-05-11 21:53 [Bug bootstrap/48971] New: sparc-rtems does not build joel at gcc dot gnu.org
  2011-05-12  7:22 ` [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2 ebotcazou at gcc dot gnu.org
@ 2011-05-12 16:30 ` law at redhat dot com
  2011-05-12 18:25 ` vmakarov at redhat dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: law at redhat dot com @ 2011-05-12 16:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |law at redhat dot com,
                   |                            |vmakarov at redhat dot com

--- Comment #2 from Jeffrey A. Law <law at redhat dot com> 2011-05-12 15:14:54 UTC ---
Vlad, this is an abort in setup_pressure_classes which apparently is totally
broken for sparc -msoft-float.


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

* [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2
  2011-05-11 21:53 [Bug bootstrap/48971] New: sparc-rtems does not build joel at gcc dot gnu.org
  2011-05-12  7:22 ` [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2 ebotcazou at gcc dot gnu.org
  2011-05-12 16:30 ` law at redhat dot com
@ 2011-05-12 18:25 ` vmakarov at redhat dot com
  2011-05-13 15:57 ` vmakarov at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: vmakarov at redhat dot com @ 2011-05-12 18:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Vladimir Makarov <vmakarov at redhat dot com> 2011-05-12 17:57:58 UTC ---
(In reply to comment #2)
> Vlad, this is an abort in setup_pressure_classes which apparently is totally
> broken for sparc -msoft-float.


I found the wrong code.  It is pretty simple but I need to check a few
platforms because the fix might affect other platform builds.

I hope I'll send the patch at the end of the day.


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

* [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2
  2011-05-11 21:53 [Bug bootstrap/48971] New: sparc-rtems does not build joel at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-05-12 18:25 ` vmakarov at redhat dot com
@ 2011-05-13 15:57 ` vmakarov at redhat dot com
  2011-05-24 16:42 ` vmakarov at gcc dot gnu.org
  2011-05-25  8:20 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: vmakarov at redhat dot com @ 2011-05-13 15:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Vladimir Makarov <vmakarov at redhat dot com> 2011-05-13 15:34:39 UTC ---
(In reply to comment #3)
> (In reply to comment #2)
> > Vlad, this is an abort in setup_pressure_classes which apparently is totally
> > broken for sparc -msoft-float.
> 
> 
> I found the wrong code.  It is pretty simple but I need to check a few
> platforms because the fix might affect other platform builds.
> 
> I hope I'll send the patch at the end of the day.

SPARC ICC register presents in ALL_REGS class only which can not be a pressure
class. That is the reason for the problem.  I also found a typo in the check
code (it collected hard registers of all non-pressure classes although it
should collect the pressure classes hard registers).  I found more complication
with the check code in MIPS target.  So it took more time than I did. 
Currently I am testing the patch and submit it for approval soon.


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

* [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2
  2011-05-11 21:53 [Bug bootstrap/48971] New: sparc-rtems does not build joel at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-05-13 15:57 ` vmakarov at redhat dot com
@ 2011-05-24 16:42 ` vmakarov at gcc dot gnu.org
  2011-05-25  8:20 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2011-05-24 16:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Vladimir Makarov <vmakarov at gcc dot gnu.org> 2011-05-24 16:14:56 UTC ---
Author: vmakarov
Date: Tue May 24 16:14:51 2011
New Revision: 174123

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174123
Log:
2011-05-13  Vladimir Makarov  <vmakarov@redhat.com>

    PR rtl-optimization/48971
    * ira.c (setup_pressure_classes): Don't check register move cost
    for classes with one registers.  Don't add pressure class if there
    is a pressure class with the same available hard registers.
    Check contains_reg_of_mode.  Fix a typo in collecting
    temp_hard_regset.  Ignore hard registers not belonging to a class.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ira.c


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

* [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2
  2011-05-11 21:53 [Bug bootstrap/48971] New: sparc-rtems does not build joel at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-05-24 16:42 ` vmakarov at gcc dot gnu.org
@ 2011-05-25  8:20 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-05-25  8:20 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

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

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-05-25 07:59:16 UTC ---
This should work again now.


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

end of thread, other threads:[~2011-05-25  8:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-11 21:53 [Bug bootstrap/48971] New: sparc-rtems does not build joel at gcc dot gnu.org
2011-05-12  7:22 ` [Bug rtl-optimization/48971] [4.7 regression] ICE with -msoft-float -O2 ebotcazou at gcc dot gnu.org
2011-05-12 16:30 ` law at redhat dot com
2011-05-12 18:25 ` vmakarov at redhat dot com
2011-05-13 15:57 ` vmakarov at redhat dot com
2011-05-24 16:42 ` vmakarov at gcc dot gnu.org
2011-05-25  8:20 ` ebotcazou at gcc dot gnu.org

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