public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer
@ 2001-06-22  9:16 Laurynas Biveinis
  0 siblings, 0 replies; 4+ messages in thread
From: Laurynas Biveinis @ 2001-06-22  9:16 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3374
>Category:       bootstrap
>Synopsis:       Bootstrap failure with -O -fomit-frame-pointer
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 09:16:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Laurynas Biveinis
>Release:        3.0 20010615 (prerelease)
>Organization:
>Environment:
System: Linux lauras.lt 2.4.5 #1 Pr Bir 18 19:52:02 EET 2001 i686 unknown
Architecture: i686
	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --prefix=/usr/local
>Description:

When bootstrapping with BOOT_CFLAGS="-O -fomit-frame-pointer -fno-defer-pop \
-fno-thread-jumps", stage2 compiler gets miscompiled and thus segfaults later
on unwind-dw2.c. I think this is a miscompilation and not a problem related
directly with unwind-dw2.c, because stage2 compiler build with other 
BOOT_CFLAGS options is able to compile unwind-dw2.c, using the same 
optimization settings.
	
>How-To-Repeat:
$ mkdir obj
$ cd obj
$ ../configure --enable-languages=c
$ make bootstrap BOOT_CFLAGS="-O -fno-defer-pop -fno-thread-jumps -fomit-frame-pointer"
[...]
./xgcc -B./ -B/usr/local/i686-pc-linux-gnu/bin/ -isystem /usr/local/i686-pc-linux-gnu/include -O2   -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -fPIC -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -fexceptions -c ../../gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../gcc/unwind-dw2.c: In function `extract_cie_info':
../../gcc/unwind-dw2.c:219: warning: implicit declaration of function `strlen'
../../gcc/unwind-dw2.c: In function `execute_stack_op':
../../gcc/unwind-dw2.c:300: warning: `result' might be used uninitialized in this function
../../gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc/unwind-dw2.c:886: warning: implicit declaration of function `memset'
../../gcc/unwind-dw2.c: In function `uw_install_context_1':
../../gcc/unwind-dw2.c:1103: warning: implicit declaration of function `memcpy'
../../gcc/unwind-dw2.c: At top level:
../../gcc/unwind-dw2.c:1123: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory `/usr/local/cvs/gcc-3.0/gcc/obj/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/usr/local/cvs/gcc-3.0/gcc/obj/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/usr/local/cvs/gcc-3.0/gcc/obj/gcc'
make: *** [bootstrap] Error 2

	
>Fix:

Beyond my knowledge.

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer
@ 2002-11-27  8:14 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2002-11-27  8:14 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lauras, nobody

Synopsis: Bootstrap failure with -O -fomit-frame-pointer

State-Changed-From-To: feedback->closed
State-Changed-By: bangerth
State-Changed-When: Tue Nov 19 16:01:06 2002
State-Changed-Why:
    I just checked it, and it builds fine with present CVS 3.3,
    with the given combination of flags.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3374


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

* Re: bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer
@ 2002-11-27  5:52 Laurynas Biveinis
  0 siblings, 0 replies; 4+ messages in thread
From: Laurynas Biveinis @ 2002-11-27  5:52 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR bootstrap/3374; it has been noted by GNATS.

From: Laurynas Biveinis <lauras@softhome.net>
To: bangerth@dealii.org
Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer
Date: Tue, 19 Nov 2002 23:34:28 +0200

 > Synopsis: Bootstrap failure with -O -fomit-frame-pointer
 
 >     This is a rather old bootstrap failure. Can you please
 >     check whether this still happens with newer versions of gcc
 >     and report your findings?
 
 Hello,
 
 Unfortunatelly I do not have resources right now to check it :(
 However, the failure was encountered on very common platform
 i686-pc-linux-gnu, so it would be nice if someone could spare some
 CPU time to do bootstrap with
 BOOT_CFLAGS="-O -fomit-frame-pointer -fno-defer-pop -fno-thread-jumps"
 (Those -fno-... options are not required to reproduce debugging, IIRC.
 They were added just to narrow the set of active optimizations, I
 think) I'll check myself as soon as I am able to. (In a month or
 two...)
 
 Laurynas
 
 


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

* Re: bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer
@ 2002-11-26 14:06 bangerth
  0 siblings, 0 replies; 4+ messages in thread
From: bangerth @ 2002-11-26 14:06 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lauras, nobody

Synopsis: Bootstrap failure with -O -fomit-frame-pointer

State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Tue Nov 19 12:17:42 2002
State-Changed-Why:
    This is a rather old bootstrap failure. Can you please
    check whether this still happens with newer versions of gcc
    and report your findings?
    
    Thanks
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3374


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

end of thread, other threads:[~2002-11-20  0:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-22  9:16 bootstrap/3374: Bootstrap failure with -O -fomit-frame-pointer Laurynas Biveinis
2002-11-26 14:06 bangerth
2002-11-27  5:52 Laurynas Biveinis
2002-11-27  8:14 bangerth

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