public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/41756] LTO: -flto -O1 linking files compiled with -fno-exceptions with ones compiled with exceptions yields error "BB 14 can not throw but has an EH edge"
       [not found] <bug-41756-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-26  0:22 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-26  0:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41756

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
   Target Milestone|---                         |10.0
         Resolution|---                         |FIXED

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for GCC 8 with r8-4560.
Though fixed fully with r10-3246.

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

* [Bug lto/41756] LTO: -flto -O1 linking files compiled with -fno-exceptions with ones compiled with exceptions yields error "BB 14 can not throw but has an EH edge"
  2009-10-19 16:54 [Bug lto/41756] New: LTO: -flto -O1 -use-linker-plugin, " edwintorok at gmail dot com
  2009-10-20  9:35 ` [Bug lto/41756] LTO: -flto -O1 " rguenth at gcc dot gnu dot org
  2009-12-11 11:39 ` hubicka at gcc dot gnu dot org
@ 2009-12-11 12:16 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-12-11 12:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2009-12-11 12:16 -------
I wonder if we should simply ignore -fno-exceptions/-fexceptions passed to
lto1 and rely on the automated discovery.

The testcase btw works for me on i?86.

The proposed patch would delete handling of OPT_fexceptions from
register_user_option_p and add flag_exceptions = 0 to lto_init_options
in case you can still reproduce the issue.


-- 


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


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

* [Bug lto/41756] LTO: -flto -O1 linking files compiled with -fno-exceptions with ones compiled with exceptions yields error "BB 14 can not throw but has an EH edge"
  2009-10-19 16:54 [Bug lto/41756] New: LTO: -flto -O1 -use-linker-plugin, " edwintorok at gmail dot com
  2009-10-20  9:35 ` [Bug lto/41756] LTO: -flto -O1 " rguenth at gcc dot gnu dot org
@ 2009-12-11 11:39 ` hubicka at gcc dot gnu dot org
  2009-12-11 12:16 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2009-12-11 11:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from hubicka at gcc dot gnu dot org  2009-12-11 11:39 -------
I would vote for LTO frotnend simply sorrying when seeing units with and
without exceptions.

Honza


-- 


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


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

* [Bug lto/41756] LTO: -flto -O1 linking files compiled with -fno-exceptions with ones compiled with exceptions yields error "BB 14 can not throw but has an EH edge"
  2009-10-19 16:54 [Bug lto/41756] New: LTO: -flto -O1 -use-linker-plugin, " edwintorok at gmail dot com
@ 2009-10-20  9:35 ` rguenth at gcc dot gnu dot org
  2009-12-11 11:39 ` hubicka at gcc dot gnu dot org
  2009-12-11 12:16 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-10-20  9:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-10-20 09:35 -------
Even that would be difficult - how would you inline between such functions?
I think the only way is to force -fexceptions during the link stage if one
translation unit did have it enabled.  The -fno-exception TUs should have
all stmts marked as not throwing.

Sort of, but well - this is a very low priority bug.  (Falls into the
class of "different flags used for compiling and linking")

I'll try a very simple hack.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|LTO: -flto -O1 -use-linker- |LTO: -flto -O1 linking files
                   |plugin, linking files       |compiled with -fno-
                   |compiled with -fno-         |exceptions with ones
                   |exceptions with ones        |compiled with exceptions
                   |compiled with exceptions    |yields error "BB 14 can not
                   |yields error "BB 14 can not |throw but has an EH edge"
                   |throw but has an EH edge"   |
            Version|unknown                     |4.5.0


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


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

end of thread, other threads:[~2021-08-26  0:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41756-4@http.gcc.gnu.org/bugzilla/>
2021-08-26  0:22 ` [Bug lto/41756] LTO: -flto -O1 linking files compiled with -fno-exceptions with ones compiled with exceptions yields error "BB 14 can not throw but has an EH edge" pinskia at gcc dot gnu.org
2009-10-19 16:54 [Bug lto/41756] New: LTO: -flto -O1 -use-linker-plugin, " edwintorok at gmail dot com
2009-10-20  9:35 ` [Bug lto/41756] LTO: -flto -O1 " rguenth at gcc dot gnu dot org
2009-12-11 11:39 ` hubicka at gcc dot gnu dot org
2009-12-11 12:16 ` rguenth 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).