From: SourceForge.net <no...@so...> - 2007-03-19 08:48:55
|
Bugs item #1683246, was opened at 2007-03-19 09:23 Message generated for change (Comment added) made by dannysmith You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1683246&group_id=2435 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: gcc Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Private: No Submitted By: Krzysztof Kosiński (tweenk) Assigned to: Danny Smith (dannysmith) Summary: Functions modifying parameters by asm inline incorrectly Initial Comment: The included file produces a segfault during execution when compiled with -O1 -finline-functions. It does not segfault when compiled with -finline-options and all the options that make up -O1 as per http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html The function "foo" will segfault if called with a parameter other than 1. Analysis of the compiler output shows that GCC does not restore the value of the "bar" parameter if consecutive calls to the function "foo" are inlined. ---------------------------------------------------------------------- >Comment By: Danny Smith (dannysmith) Date: 2007-03-19 20:48 Message: Logged In: YES user_id=11494 Originator: NO Fixed in later versions of gcc. GCC-3.4.2 won't be fixed. gcc-3.4.5 -O1 -finline-functions -c test.c works fine. This is available in Candidate section of SF Files page. gcc-4.2.0 -01 -finline-functions -c test.c works fine. Mingw binaries of this will be uploaded as soon as officially released by FSF. Danny ---------------------------------------------------------------------- Comment By: Krzysztof Kosiński (tweenk) Date: 2007-03-19 09:29 Message: Logged In: YES user_id=1746837 Originator: YES System: Windows XP GCC version: 3.4.2 (mingw-special) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1683246&group_id=2435 |