From: SourceForge.net <no...@so...> - 2011-05-19 07:27:54
|
Bugs item #3304304, was opened at 2011-05-19 01:17 Message generated for change (Settings changed) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3304304&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: C-Front End >Group: non bugs >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: Brennen Ball (brennen_ball) >Assigned to: Maarten Brock (maartenbrock) >Summary: Inline functions with more than 1 parameter breaks build Initial Comment: I upgraded from 2.9.0 to the May 17, 2011 snapshot (#6522), and it looks like inline functions with more than one parameter are causing the linker issues. If you run make all on the code included with 2.9.0, then the code will compile just fine. However, on #6522, you get the following error: ?ASlink-Warning-Undefined Global '_test_2_params_PARM_2' referenced by module 'main' make: *** [all] Error 1 If you comment out the line in main.c where test_2_params() is called, you get no error in either version. It seems like somehow, inlining with two parameters has gotten broken. ---------------------------------------------------------------------- >Comment By: Maarten Brock (maartenbrock) Date: 2011-05-19 09:27 Message: This is no bug. When compiling main.c the compiler never gets to see a definition of these two functions and thus can not inline them. Therefor it needs a definition with external linkage but there is none because in test.c they are marked static. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3304304&group_id=599 |