public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/50857] [4.7 Regression] The compiler is built with exceptions and RTTI enabled
  2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
@ 2011-10-24 15:50 ` rguenth at gcc dot gnu.org
  2011-10-24 16:45 ` ian at airs dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-24 15:50 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

* [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled
@ 2011-10-24 15:50 rguenth at gcc dot gnu.org
  2011-10-24 15:50 ` [Bug bootstrap/50857] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-24 15:50 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50857
           Summary: [4.7 Regression] The compiler is built with exceptions
                    and RTTI enabled
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org
                CC: iant@google.com


We fail to pass -fno-exceptions -fno-rtti to g++ for stage2 and stage3 building
the host binaries.  That leads to increased compile-time and possibly runtime.

Ian, does Go need exceptions or RTTI?

Any idea where to best fix this?


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

* [Bug bootstrap/50857] [4.7 Regression] The compiler is built with exceptions and RTTI enabled
  2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
  2011-10-24 15:50 ` [Bug bootstrap/50857] " rguenth at gcc dot gnu.org
@ 2011-10-24 16:45 ` ian at airs dot com
  2011-10-27 11:43 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ian at airs dot com @ 2011-10-24 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com

--- Comment #1 from Ian Lance Taylor <ian at airs dot com> 2011-10-24 16:44:25 UTC ---
The Go frontend does not use exceptions or RTTI.

The place to add new C++-specific options to be used when building gcc code is
ALL_CXXFLAGS in gcc/Makefile.in.  The thing to be careful of is that that
Makefile variable is used for any C++ compiler.  Ideally there would be a
configure test to see whether the compiler supported the options.  This can be
done along the lines of ACX_PROG_CC_WARNING_OPTS in configure.ac.  In fact you
can probably just use ACX_PROG_CC_WARNING_OPTS despite the name.


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

* [Bug bootstrap/50857] [4.7 Regression] The compiler is built with exceptions and RTTI enabled
  2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
  2011-10-24 15:50 ` [Bug bootstrap/50857] " rguenth at gcc dot gnu.org
  2011-10-24 16:45 ` ian at airs dot com
@ 2011-10-27 11:43 ` rguenth at gcc dot gnu.org
  2011-10-28 13:08 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-27 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-10-27
     Ever Confirmed|0                           |1


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

* [Bug bootstrap/50857] [4.7 Regression] The compiler is built with exceptions and RTTI enabled
  2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-10-27 11:43 ` rguenth at gcc dot gnu.org
@ 2011-10-28 13:08 ` rguenth at gcc dot gnu.org
  2011-10-28 13:56 ` iant at google dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-10-28 13:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-28 13:08:10 UTC ---
Hm, well - I would rather unconditionally enable those options for stage2 and
3 (we know it'll be G++ at built) and leave them off for stage1.  Any way
to just influence stage2+?  Or would that be even more complicated?


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

* [Bug bootstrap/50857] [4.7 Regression] The compiler is built with exceptions and RTTI enabled
  2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-10-28 13:08 ` rguenth at gcc dot gnu.org
@ 2011-10-28 13:56 ` iant at google dot com
  2011-11-03 17:17 ` matz at gcc dot gnu.org
  2011-11-03 17:22 ` matz at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: iant at google dot com @ 2011-10-28 13:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from iant at google dot com <iant at google dot com> 2011-10-28 13:56:23 UTC ---
I suppose you could drop something into POSTSTAGE1_FLAGS_TO_PASS.  But
it's not the right thing to do.  We want to use -fno-exceptions
-fno-rtti even when using --disable-bootstrap or when using
--enable-build-with-cxx.


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

* [Bug bootstrap/50857] [4.7 Regression] The compiler is built with exceptions and RTTI enabled
  2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-10-28 13:56 ` iant at google dot com
@ 2011-11-03 17:17 ` matz at gcc dot gnu.org
  2011-11-03 17:22 ` matz at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: matz at gcc dot gnu.org @ 2011-11-03 17:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Michael Matz <matz at gcc dot gnu.org> 2011-11-03 17:17:11 UTC ---
Author: matz
Date: Thu Nov  3 17:17:07 2011
New Revision: 180833

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180833
Log:
libcpp/
    PR bootstrap/50857
    * configure.ac: Check for -fno-exceptions -fno-rtti.
    * configure: Regenerate.
    * Makefile.in (NOEXCEPTION_FLAGS): New flag.
    (ALL_CXXFLAGS): Use it.

gcc/
    PR bootstrap/50857
    * configure.ac: Check for -fno-exceptions -fno-rtti.
    * configure: Regenerate.
    * Makefile.in (NOEXCEPTION_FLAGS): New flag.
    (ALL_CXXFLAGS): Use it.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/Makefile.in
    trunk/gcc/configure
    trunk/gcc/configure.ac
    trunk/libcpp/ChangeLog
    trunk/libcpp/Makefile.in
    trunk/libcpp/configure
    trunk/libcpp/configure.ac


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

* [Bug bootstrap/50857] [4.7 Regression] The compiler is built with exceptions and RTTI enabled
  2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-11-03 17:17 ` matz at gcc dot gnu.org
@ 2011-11-03 17:22 ` matz at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: matz at gcc dot gnu.org @ 2011-11-03 17:22 UTC (permalink / raw)
  To: gcc-bugs

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

Michael Matz <matz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |matz at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #5 from Michael Matz <matz at gcc dot gnu.org> 2011-11-03 17:22:02 UTC ---
Fixed.


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

end of thread, other threads:[~2011-11-03 17:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24 15:50 [Bug bootstrap/50857] New: [4.7 Regression] The compiler is built with exceptions and RTTI enabled rguenth at gcc dot gnu.org
2011-10-24 15:50 ` [Bug bootstrap/50857] " rguenth at gcc dot gnu.org
2011-10-24 16:45 ` ian at airs dot com
2011-10-27 11:43 ` rguenth at gcc dot gnu.org
2011-10-28 13:08 ` rguenth at gcc dot gnu.org
2011-10-28 13:56 ` iant at google dot com
2011-11-03 17:17 ` matz at gcc dot gnu.org
2011-11-03 17:22 ` matz 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).