public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer
@ 2004-10-05  7:28 rschiele at uni-mannheim dot de
  2004-10-05  9:14 ` [Bug bootstrap/17835] " ebotcazou at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rschiele at uni-mannheim dot de @ 2004-10-05  7:28 UTC (permalink / raw)
  To: gcc-bugs

When configuring a compiler for i586-linux, bootstrapping fails at: 
 
./xgcc -B./ -B/usr/local/i586-linux/bin/ -isystem /usr/local/i586-linux/include 
-isystem /usr/local/i586-linux/sys-include -L/home/robert/gcc/build/gcc/../ld 
-O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g 
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. 
-I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include 
-I../../gcc/gcc/../libcpp/include  -DL_gcov_execl -c ../../gcc/gcc/libgcov.c -o 
libgcc/./_gcov_execl.o 
../../gcc/gcc/libgcov.c: In function '__gcov_execl': 
../../gcc/gcc/libgcov.c:613: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
in stage2. 
 
I found that this happens when stage2 compiler is built with 
-fomit-frame-pointer, as it is default for this configuration 
(config/mh-x86omitfp). When this option is removed, bootstrapping is fine. 
 
It seems that -fomit-frame-pointer does produce wrong-code when building stage2 
compiler and thus stage2 compiler is broken. 
 
Note that this does neither happen for i486-linux, nor for i686-linux, only for 
i586-linux. Because of that it is essential to specify i586 explicitly when 
trying to reproduce.

-- 
           Summary: stage2 compiler is broken because it is built with -
                    fomit-frame-pointer
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rschiele at uni-mannheim dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i586-pc-linux-gnu
  GCC host triplet: i586-pc-linux-gnu
GCC target triplet: i586-pc-linux-gnu


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


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

* [Bug bootstrap/17835] stage2 compiler is broken because it is built with -fomit-frame-pointer
  2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
@ 2004-10-05  9:14 ` ebotcazou at gcc dot gnu dot org
  2004-10-05 11:26 ` [Bug target/17835] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-10-05  9:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-10-05 09:14 -------
I ran into it too.

Btw, Roger, you forgot to add an entry to config/ChangeLog AFAICS.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sayle at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-05 09:14:39
               date|                            |


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


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

* [Bug target/17835] [4.0 Regression] stage2 compiler is broken because it is built with -fomit-frame-pointer
  2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
  2004-10-05  9:14 ` [Bug bootstrap/17835] " ebotcazou at gcc dot gnu dot org
@ 2004-10-05 11:26 ` pinskia at gcc dot gnu dot org
  2004-10-06 15:37 ` ebotcazou at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 11:26 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|bootstrap                   |target
           Keywords|                            |build, ice-on-valid-code,
                   |                            |wrong-code
            Summary|stage2 compiler is broken   |[4.0 Regression] stage2
                   |because it is built with -  |compiler is broken because
                   |fomit-frame-pointer         |it is built with -fomit-
                   |                            |frame-pointer
   Target Milestone|---                         |4.0.0


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


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

* [Bug target/17835] [4.0 Regression] stage2 compiler is broken because it is built with -fomit-frame-pointer
  2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
  2004-10-05  9:14 ` [Bug bootstrap/17835] " ebotcazou at gcc dot gnu dot org
  2004-10-05 11:26 ` [Bug target/17835] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-06 15:37 ` ebotcazou at gcc dot gnu dot org
  2004-10-06 22:29 ` [Bug middle-end/17835] " ebotcazou at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-10-06 15:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-10-06 15:37 -------
Investigating.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|ebotcazou at gcc dot gnu dot|
                   |org                         |
         AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug middle-end/17835] [4.0 Regression] stage2 compiler is broken because it is built with -fomit-frame-pointer
  2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
                   ` (2 preceding siblings ...)
  2004-10-06 15:37 ` ebotcazou at gcc dot gnu dot org
@ 2004-10-06 22:29 ` ebotcazou at gcc dot gnu dot org
  2004-10-06 22:55 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-10-06 22:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-10-06 22:29 -------
It's the right component.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|target                      |middle-end


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


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

* [Bug middle-end/17835] [4.0 Regression] stage2 compiler is broken because it is built with -fomit-frame-pointer
  2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
                   ` (3 preceding siblings ...)
  2004-10-06 22:29 ` [Bug middle-end/17835] " ebotcazou at gcc dot gnu dot org
@ 2004-10-06 22:55 ` pinskia at gcc dot gnu dot org
  2004-10-07  5:56 ` cvs-commit at gcc dot gnu dot org
  2004-10-07  5:59 ` ebotcazou at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-06 22:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-06 22:55 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00567.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug middle-end/17835] [4.0 Regression] stage2 compiler is broken because it is built with -fomit-frame-pointer
  2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
                   ` (4 preceding siblings ...)
  2004-10-06 22:55 ` pinskia at gcc dot gnu dot org
@ 2004-10-07  5:56 ` cvs-commit at gcc dot gnu dot org
  2004-10-07  5:59 ` ebotcazou at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-07  5:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-07 05:56 -------
Subject: Bug 17835

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ebotcazou@gcc.gnu.org	2004-10-07 05:56:53

Modified files:
	gcc            : ChangeLog expmed.c 

Log message:
	PR middle-end/17835
	* expmed.c (expand_sdiv_pow2): Force a stack adjustment
	before tentatively building the conditional move sequence.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5776&r2=2.5777
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/expmed.c.diff?cvsroot=gcc&r1=1.197&r2=1.198



-- 


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


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

* [Bug middle-end/17835] [4.0 Regression] stage2 compiler is broken because it is built with -fomit-frame-pointer
  2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
                   ` (5 preceding siblings ...)
  2004-10-07  5:56 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-07  5:59 ` ebotcazou at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-10-07  5:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-10-07 05:59 -------
Patch applied.


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


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


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

end of thread, other threads:[~2004-10-07  5:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-05  7:28 [Bug bootstrap/17835] New: stage2 compiler is broken because it is built with -fomit-frame-pointer rschiele at uni-mannheim dot de
2004-10-05  9:14 ` [Bug bootstrap/17835] " ebotcazou at gcc dot gnu dot org
2004-10-05 11:26 ` [Bug target/17835] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-06 15:37 ` ebotcazou at gcc dot gnu dot org
2004-10-06 22:29 ` [Bug middle-end/17835] " ebotcazou at gcc dot gnu dot org
2004-10-06 22:55 ` pinskia at gcc dot gnu dot org
2004-10-07  5:56 ` cvs-commit at gcc dot gnu dot org
2004-10-07  5:59 ` ebotcazou at gcc dot gnu dot 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).