This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix lto-profiledbootstrap [was: Merge cgraph_get_create_node and cgraph_get_create_real_symbol_node]
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Jan Hubicka <hubicka at ucw dot cz>, Martin Jambor <mjambor at suse dot cz>, Teresa Johnson <tejohnson at google dot com>
- Date: Thu, 14 Nov 2013 21:49:57 +0100
- Subject: [PATCH] Fix lto-profiledbootstrap [was: Merge cgraph_get_create_node and cgraph_get_create_real_symbol_node]
- Authentication-results: sourceware.org; auth=none
On Thu, Nov 14, 2013 at 7:16 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
Attached patch fixes lto-profiledbootstrap, introduced by:
>>>> 2013-11-12 Martin Jambor <mjambor@suse.cz>
>>>>
>>>> * cgraph.c (cgraph_get_create_node): Do what
>>>> cgraph_get_create_real_symbol_node used to do.
>>>> (cgraph_get_create_real_symbol_node): Removed. Changed all users to
>>>> call cgraph_get_create_node.
>>>> * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
>>>> * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
>>>> cgraph_get_create_node. Assert we get a node.
The patch reverts lto-streamer-in.c functionality back to what was
doing before the above patch.
2013-11-14 Uros Bizjak <ubizjak@gmail.com>
* lto-streamer-in.c (input function): Call cgraph_create_node if
cgraph_get_node failed.
Tested with lto-profiledbootstrap on x86_64-pc-linux-gnu, regression
tested also with -m32 [1].
OK for mainline?
[1] http://gcc.gnu.org/ml/gcc-testresults/2013-11/msg00989.html
Uros.