[Bug libgcc/78064] unwind-c.c never uses _Unwind_GetIPInfo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78064 --- Comment #6 from Florian Weimer --- Author: fw Date: Mon Nov 7 19:54:05 2016 New Revision: 241929 URL: https://gcc.gnu.org/viewcvs?rev=241929&root=gcc&view=rev Log: PR libgcc/78064: Add missing include directive to unwind-c.c Backport from mainline 2016-10-24 Florian Weimer PR libgcc/78064 * unwind-c.c: Include auto-target.h. Modified: branches/gcc-5-branch/ (props changed) branches/gcc-5-branch/libgcc/ChangeLog branches/gcc-5-branch/libgcc/unwind-c.c Propchange: branches/gcc-5-branch/ ('svn:mergeinfo' modified)
[Bug libgcc/78064] unwind-c.c never uses _Unwind_GetIPInfo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78064 --- Comment #5 from Florian Weimer --- Author: fw Date: Mon Nov 7 17:08:40 2016 New Revision: 241914 URL: https://gcc.gnu.org/viewcvs?rev=241914&root=gcc&view=rev Log: PR libgcc/78064: Add missing include directive to unwind-c.c Backport from mainline 2016-10-24 Florian Weimer PR libgcc/78064 * unwind-c.c: Include auto-target.h. Modified: branches/gcc-6-branch/ (props changed) branches/gcc-6-branch/libgcc/ChangeLog branches/gcc-6-branch/libgcc/unwind-c.c Propchange: branches/gcc-6-branch/ ('svn:mergeinfo' modified)
[Bug libgcc/78064] unwind-c.c never uses _Unwind_GetIPInfo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78064 Florian Weimer changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|--- |FIXED --- Comment #4 from Florian Weimer --- Fixed in 7.0.
[Bug libgcc/78064] unwind-c.c never uses _Unwind_GetIPInfo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78064 --- Comment #3 from Florian Weimer --- Author: fw Date: Mon Oct 24 18:25:09 2016 New Revision: 241491 URL: https://gcc.gnu.org/viewcvs?rev=241491&root=gcc&view=rev Log: PR libgcc/78064: Add missing include directive to unwind-c.c PR libgcc/78064 * unwind-c.c: Include auto-target.h. Modified: trunk/libgcc/ChangeLog trunk/libgcc/unwind-c.c
[Bug libgcc/78064] unwind-c.c never uses _Unwind_GetIPInfo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78064 --- Comment #2 from Jim Wilson --- The old configure.ac before the patch breaks this has GCC_TARGET_TEMPLATE(HAVE_GETIPINFO) which prevents the ifndef/endif from being added to config.in. But this apparently only works in the gcc dir, and I don't think it can be used after the changes made by the patch as the configure check moved into the config/unwind_ipinfo.m4 file. Including auto-target.h seems to be the simpler fix.
[Bug libgcc/78064] unwind-c.c never uses _Unwind_GetIPInfo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78064 Jim Wilson changed: What|Removed |Added CC||wilson at gcc dot gnu.org --- Comment #1 from Jim Wilson --- I tracked the problem down to bug 27880 comment 31. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27880#c31 The patch is arguably correct, but it changes config.in from #undef HAVE_GETIPINFO to #ifndef USED_FOR_TARGET #undef HAVE_GETIPINFO#undef HAVE_GETIPINFO #endif config.in is used to generate auto-host.h, which is included by unwind-c.c. But the new ifndef prevents HAVE_GETIPINFO from being defined in unwind-c.c, as USED_FOR_TARGET is defined in tconfig.h before auto-host.h is included. Now that we have an auto-target.h file in libgcc, we can fix the problem by including that. This was OK in gcc-4.3, and broken in gcc-4.4 and later. The libgcc auto-target.h file appeared in gcc-4.8. So fixing gcc-4.4 to gcc-4.7 looks a bit complicated, but anything gcc-4.8 and later looks easy to fix. We of course only care about gcc 5 and later at this point.