public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48431] New: patch to fix a compile error in lto-plugin.c when using older C compilers
@ 2011-04-04 3:53 williambader at hotmail dot com
2011-04-04 12:40 ` [Bug lto/48431] " rguenth at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: williambader at hotmail dot com @ 2011-04-04 3:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48431
Summary: patch to fix a compile error in lto-plugin.c when
using older C compilers
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: williambader@hotmail.com
Created attachment 23867
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23867
patch to fix the problem
The build for gcc-4.6.0 gets a compile error on lto-plugin.c on Red Hat Linux
release 7.1 (Seawolf) with gcc version 2.96 20000731 because this compiler does
not allow declarations after the first statement. The attached patch moves a
declaration a few lines back.
For the build, I ran
/u/gnu/gcc-4.6.0/configure --disable-nls --enable-checking=release
--enable-werror=no --with-system-zlib --disable-multilib --with-gmp=/usr/local
--with-mpfr=/usr/local
make CC=gcc 'CFLAGS=-O0 -g -pipe' 'LIBCFLAGS=-O0 ' 'LIBCXXFLAGS=-O0
-fno-implicit-templates ' 'CXXFLAGS=-O0 -fno-implicit-templates '
'CXXFLAGS_FOR_BUILD=-O0 -fno-implicit-templates ' 'CXXFLAGS_FOR_TARGET=-O0
-fno-implicit-templates ' 'GOCFLAGS_FOR_TARGET=-O0 -g -pipe' 'BOOT_CFLAGS= -O0
-g -pipe' AS=/usr/bin/as bootstrap-lean
Without all of the -O0's, the stage2 xgcc gets an ICE almost immediately on
almost any input.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/48431] patch to fix a compile error in lto-plugin.c when using older C compilers
2011-04-04 3:53 [Bug lto/48431] New: patch to fix a compile error in lto-plugin.c when using older C compilers williambader at hotmail dot com
@ 2011-04-04 12:40 ` rguenth at gcc dot gnu.org
2011-04-05 12:20 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-04 12:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48431
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.04.04 12:34:51
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-04 12:34:51 UTC ---
Mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/48431] patch to fix a compile error in lto-plugin.c when using older C compilers
2011-04-04 3:53 [Bug lto/48431] New: patch to fix a compile error in lto-plugin.c when using older C compilers williambader at hotmail dot com
2011-04-04 12:40 ` [Bug lto/48431] " rguenth at gcc dot gnu.org
@ 2011-04-05 12:20 ` rguenth at gcc dot gnu.org
2011-04-05 12:24 ` rguenth at gcc dot gnu.org
2011-04-05 12:28 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-05 12:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48431
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.6.1
--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-05 12:13:42 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/48431] patch to fix a compile error in lto-plugin.c when using older C compilers
2011-04-04 3:53 [Bug lto/48431] New: patch to fix a compile error in lto-plugin.c when using older C compilers williambader at hotmail dot com
2011-04-04 12:40 ` [Bug lto/48431] " rguenth at gcc dot gnu.org
2011-04-05 12:20 ` rguenth at gcc dot gnu.org
@ 2011-04-05 12:24 ` rguenth at gcc dot gnu.org
2011-04-05 12:28 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-05 12:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48431
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-05 12:11:13 UTC ---
Author: rguenth
Date: Tue Apr 5 12:11:08 2011
New Revision: 171982
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171982
Log:
2011-04-05 Richard Guenther <rguenther@suse.de>
PR bootstrap/48431
* lto-plugin.c (claim_file_handler): Do not declare vars in code.
Modified:
trunk/lto-plugin/ChangeLog
trunk/lto-plugin/lto-plugin.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/48431] patch to fix a compile error in lto-plugin.c when using older C compilers
2011-04-04 3:53 [Bug lto/48431] New: patch to fix a compile error in lto-plugin.c when using older C compilers williambader at hotmail dot com
` (2 preceding siblings ...)
2011-04-05 12:24 ` rguenth at gcc dot gnu.org
@ 2011-04-05 12:28 ` rguenth at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-05 12:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48431
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-04-05 12:13:31 UTC ---
Author: rguenth
Date: Tue Apr 5 12:13:27 2011
New Revision: 171983
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171983
Log:
2011-04-05 Richard Guenther <rguenther@suse.de>
PR bootstrap/48431
* lto-plugin.c (claim_file_handler): Do not declare vars in code.
Modified:
branches/gcc-4_6-branch/lto-plugin/ChangeLog
branches/gcc-4_6-branch/lto-plugin/lto-plugin.c
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-04-05 12:28 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-04 3:53 [Bug lto/48431] New: patch to fix a compile error in lto-plugin.c when using older C compilers williambader at hotmail dot com
2011-04-04 12:40 ` [Bug lto/48431] " rguenth at gcc dot gnu.org
2011-04-05 12:20 ` rguenth at gcc dot gnu.org
2011-04-05 12:24 ` rguenth at gcc dot gnu.org
2011-04-05 12:28 ` rguenth 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).