This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] Implement non-call exceptions


Richard Henderson writes:
 > On Wed, Dec 03, 2003 at 06:13:23PM +0000, Andrew Haley wrote:
 > > Also, we assume that libcalls can't throw.
 > 
 > Except extra-special cases, they can't.  In what context
 > did this come up? 

All of the division routines in libgcc can throw.  IIRC you approved
my patch to build them with unwind information.

 > And why would it differ from mainline?

Beats me.  But there really wasn't any landing pad for those calls
because they were marked as not throwing.  That they be marked as not
throwing is unquestionably wrong, given that they do in fact throw!
Maybe I'll have a look at the mainline code to find out why it behaves
differently.

 > > 	* tree-eh.c (tree_could_trap_p): Add division instructions.
 > 
 > We should probably add floating point operations as well...

I guess it depends on the language.  What language throws exceptions
on floating-point execptions?  Ada?  Perhaps it should be a langhook.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]