This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] type promotion pass
- From: Steve Ellcey <sellcey at cavium dot com>
- To: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>, "prathamesh dot kulkarni at linaro dot org" <prathamesh dot kulkarni at linaro dot org>
- Cc: "kugan dot vivekanandarajah at linaro dot org" <kugan dot vivekanandarajah at linaro dot org>, Richard Biener <richard dot guenther at gmail dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, nd <nd at arm dot com>
- Date: Mon, 18 Sep 2017 10:42:31 -0700
- Subject: Re: [RFC] type promotion pass
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Steve dot Ellcey at cavium dot com;
- References: <DB6PR0801MB2053C1BC62931E4B9DEE87CF836C0@DB6PR0801MB2053.eurprd08.prod.outlook.com>
- Reply-to: sellcey at cavium dot com
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On Fri, 2017-09-15 at 12:22 +0000, Wilco Dijkstra wrote:
Wilco or Prathamesh,
I could not apply this patch (cleanly) to ToT. match.pd did not apply,
I think I fixed that. The cfgexpand.c patch applied but will not
build. I get this error:
../../../src/gcc/gcc/cfgexpand.c: In function ‘rtx_def*
expand_debug_expr(tree)’:
../../../src/gcc/gcc/cfgexpand.c:5130:18: error: cannot convert
‘opt_machine_mode {aka opt_mode<machine_mode>}’ to ‘machine_mode’ in
assignment
inner_mode = mode_for_size (INTVAL (op1), MODE_INT, 0);
I can't quite figure out what change needs to be made to this line to
make it compile. I do see that mode_for_size has been changed.
I tried using int_mode_for_size but that doesn't work and I tried
using '.require ()' but that didn't work either.
inner_mode = int_mode_for_size (INTVAL (op1), 0); /* This did not work. */
inner_mode = mode_for_size (INTVAL (op1), MODE_INT, 0).require (); /* This did not work */
Steve Ellcey
sellcey@cavium.com