public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/51450] New: configure's test for -fno-rtti -fno-exceptions broken
@ 2011-12-07 14:14 christophe.lyon at st dot com
  2012-01-28 20:41 ` [Bug bootstrap/51450] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: christophe.lyon at st dot com @ 2011-12-07 14:14 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51450
           Summary: configure's test for -fno-rtti -fno-exceptions broken
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: christophe.lyon@st.com


I have noticed that configure decides that my build GCC does not support
-fno-rtti -fno-exceptions when building a new GCC.

I traced this down to a problem in libtool.m4 where _LT_COMPILER_NO_RTTI uses
_LT_COMPILER_OPTION to check whether these 2 options are supported.

The latter compiles & links $lt_simple_compile_test_code which contains:
lt_simple_compile_test_code="int some_variable = 0;"

The link phase fails because there is no main(), and then configure decides
-fno-rtti -fno-exceptions are not supported.

I am not sure about how to fix this:
- change _LT_COMPILER_OPTION to use $lt_simple_link_test_code instead?
- use a modified _LT_LINKER_OPTION (given that the options tests belong to
CFLAGS rather than LDFLAGS)?
- other?

Maybe this bug should be reported elsewhere?


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

end of thread, other threads:[~2024-04-14 21:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-07 14:14 [Bug other/51450] New: configure's test for -fno-rtti -fno-exceptions broken christophe.lyon at st dot com
2012-01-28 20:41 ` [Bug bootstrap/51450] " pinskia at gcc dot gnu.org
2012-01-30  9:28 ` christophe.lyon at st dot com
2012-01-30 20:54 ` pinskia at gcc dot gnu.org
2012-05-22  7:22 ` pinskia at gcc dot gnu.org
2024-04-14 21:15 ` pinskia 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).