This is the mail archive of the gcc-bugs@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]

[Bug c/49653] Undefined reference to inlined function with -O0,-std=c99


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

--- Comment #7 from Gary Funck <gary at intrepid dot com> 2011-07-07 16:38:33 UTC ---
(In reply to comment #6)
> why not just add this to make the code valid by emitting an extern definition?
> 
> extern long trouble(long, long);

If you're suggesting that the front-end would do this automatically when
compiling -O0 -std={gnu}99, I'd agree that this would be a good way to handle
this use case.


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