* [patch stmt.c]: 6 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
@ 2012-11-29 12:12 Kai Tietz
2012-12-02 9:13 ` Kai Tietz
0 siblings, 1 reply; 4+ messages in thread
From: Kai Tietz @ 2012-11-29 12:12 UTC (permalink / raw)
To: GCC Patches
Hello,
this trivial patch fixes a bootstrap issue on LLP64 hosts.
ChangeLog
2012-11-29 Kai Tietz
PR target/53912
* stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
(expand_case): Likewise.
Tested for i686-w64-mingw32, x86_64-w64-mingw32, and
x86_64-unknown-gnu-linux. Ok for apply?
Regards,
Kai
Index: stmt.c
===================================================================
--- stmt.c (Revision 193925)
+++ stmt.c (Arbeitskopie)
@@ -2061,7 +2061,7 @@ compute_cases_per_edge (gimple stmt)
tree lab = CASE_LABEL (elt);
basic_block case_bb = label_to_block_fn (cfun, lab);
edge case_edge = find_edge (bb, case_bb);
- case_edge->aux = (void *)((long)(case_edge->aux) + 1);
+ case_edge->aux = (void *)((intptr_t)(case_edge->aux) + 1);
}
}
@@ -2176,7 +2176,7 @@ expand_case (gimple stmt)
edge case_edge = find_edge (bb, case_bb);
case_list = add_case_node (
case_list, low, high, lab,
- case_edge->probability / (long)(case_edge->aux),
+ case_edge->probability / (intptr_t)(case_edge->aux),
case_node_pool);
}
pointer_set_destroy (seen_labels);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch stmt.c]: 6 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
2012-11-29 12:12 [patch stmt.c]: 6 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 Kai Tietz
@ 2012-12-02 9:13 ` Kai Tietz
2012-12-09 15:58 ` NightStrike
0 siblings, 1 reply; 4+ messages in thread
From: Kai Tietz @ 2012-12-02 9:13 UTC (permalink / raw)
To: GCC Patches
Ping
2012/11/29 Kai Tietz <ktietz70@googlemail.com>:
> Hello,
>
> this trivial patch fixes a bootstrap issue on LLP64 hosts.
>
> ChangeLog
>
> 2012-11-29 Kai Tietz
>
> PR target/53912
> * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
> (expand_case): Likewise.
>
> Tested for i686-w64-mingw32, x86_64-w64-mingw32, and
> x86_64-unknown-gnu-linux. Ok for apply?
>
> Regards,
> Kai
>
> Index: stmt.c
> ===================================================================
> --- stmt.c (Revision 193925)
> +++ stmt.c (Arbeitskopie)
> @@ -2061,7 +2061,7 @@ compute_cases_per_edge (gimple stmt)
> tree lab = CASE_LABEL (elt);
> basic_block case_bb = label_to_block_fn (cfun, lab);
> edge case_edge = find_edge (bb, case_bb);
> - case_edge->aux = (void *)((long)(case_edge->aux) + 1);
> + case_edge->aux = (void *)((intptr_t)(case_edge->aux) + 1);
> }
> }
>
> @@ -2176,7 +2176,7 @@ expand_case (gimple stmt)
> edge case_edge = find_edge (bb, case_bb);
> case_list = add_case_node (
> case_list, low, high, lab,
> - case_edge->probability / (long)(case_edge->aux),
> + case_edge->probability / (intptr_t)(case_edge->aux),
> case_node_pool);
> }
> pointer_set_destroy (seen_labels);
--
| (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch stmt.c]: 6 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
2012-12-02 9:13 ` Kai Tietz
@ 2012-12-09 15:58 ` NightStrike
2012-12-10 9:21 ` Richard Biener
0 siblings, 1 reply; 4+ messages in thread
From: NightStrike @ 2012-12-09 15:58 UTC (permalink / raw)
To: Kai Tietz; +Cc: GCC Patches
On Sat, Dec 1, 2012 at 11:13 PM, Kai Tietz <ktietz70@googlemail.com> wrote:
> Ping
>
> 2012/11/29 Kai Tietz <ktietz70@googlemail.com>:
>> Hello,
>>
>> this trivial patch fixes a bootstrap issue on LLP64 hosts.
>>
>> ChangeLog
>>
>> 2012-11-29 Kai Tietz
>>
>> PR target/53912
>> * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
>> (expand_case): Likewise.
>>
>> Tested for i686-w64-mingw32, x86_64-w64-mingw32, and
>> x86_64-unknown-gnu-linux. Ok for apply?
>>
>> Regards,
>> Kai
>>
>> Index: stmt.c
>> ===================================================================
>> --- stmt.c (Revision 193925)
>> +++ stmt.c (Arbeitskopie)
>> @@ -2061,7 +2061,7 @@ compute_cases_per_edge (gimple stmt)
>> tree lab = CASE_LABEL (elt);
>> basic_block case_bb = label_to_block_fn (cfun, lab);
>> edge case_edge = find_edge (bb, case_bb);
>> - case_edge->aux = (void *)((long)(case_edge->aux) + 1);
>> + case_edge->aux = (void *)((intptr_t)(case_edge->aux) + 1);
>> }
>> }
>>
>> @@ -2176,7 +2176,7 @@ expand_case (gimple stmt)
>> edge case_edge = find_edge (bb, case_bb);
>> case_list = add_case_node (
>> case_list, low, high, lab,
>> - case_edge->probability / (long)(case_edge->aux),
>> + case_edge->probability / (intptr_t)(case_edge->aux),
>> case_node_pool);
>> }
>> pointer_set_destroy (seen_labels);
Ping x2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch stmt.c]: 6 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
2012-12-09 15:58 ` NightStrike
@ 2012-12-10 9:21 ` Richard Biener
0 siblings, 0 replies; 4+ messages in thread
From: Richard Biener @ 2012-12-10 9:21 UTC (permalink / raw)
To: NightStrike; +Cc: Kai Tietz, GCC Patches
On Sun, Dec 9, 2012 at 4:58 PM, NightStrike <nightstrike@gmail.com> wrote:
> On Sat, Dec 1, 2012 at 11:13 PM, Kai Tietz <ktietz70@googlemail.com> wrote:
>> Ping
>>
>> 2012/11/29 Kai Tietz <ktietz70@googlemail.com>:
>>> Hello,
>>>
>>> this trivial patch fixes a bootstrap issue on LLP64 hosts.
>>>
>>> ChangeLog
>>>
>>> 2012-11-29 Kai Tietz
>>>
>>> PR target/53912
>>> * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
>>> (expand_case): Likewise.
>>>
>>> Tested for i686-w64-mingw32, x86_64-w64-mingw32, and
>>> x86_64-unknown-gnu-linux. Ok for apply?
>>>
>>> Regards,
>>> Kai
>>>
>>> Index: stmt.c
>>> ===================================================================
>>> --- stmt.c (Revision 193925)
>>> +++ stmt.c (Arbeitskopie)
>>> @@ -2061,7 +2061,7 @@ compute_cases_per_edge (gimple stmt)
>>> tree lab = CASE_LABEL (elt);
>>> basic_block case_bb = label_to_block_fn (cfun, lab);
>>> edge case_edge = find_edge (bb, case_bb);
>>> - case_edge->aux = (void *)((long)(case_edge->aux) + 1);
>>> + case_edge->aux = (void *)((intptr_t)(case_edge->aux) + 1);
>>> }
>>> }
>>>
>>> @@ -2176,7 +2176,7 @@ expand_case (gimple stmt)
>>> edge case_edge = find_edge (bb, case_bb);
>>> case_list = add_case_node (
>>> case_list, low, high, lab,
>>> - case_edge->probability / (long)(case_edge->aux),
>>> + case_edge->probability / (intptr_t)(case_edge->aux),
>>> case_node_pool);
>>> }
>>> pointer_set_destroy (seen_labels);
>
> Ping x2
Ok.
Thanks,
Richard.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-10 9:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-29 12:12 [patch stmt.c]: 6 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 Kai Tietz
2012-12-02 9:13 ` Kai Tietz
2012-12-09 15:58 ` NightStrike
2012-12-10 9:21 ` Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).