Fix calculation of ptr_mode for MODE_PARTIAL_INT Pmode
commitdb22dc719a00df18db52180ae6882f8affb3d52c
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Nov 2017 13:58:20 +0000 (22 13:58 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 Nov 2017 13:58:20 +0000 (22 13:58 +0000)
tree2bc596ed89706f91e1b7c5fb7ebd2b6e5cbfce51
parentb1601b0599a724227ce2c92aa96903c08051f415
Fix calculation of ptr_mode for MODE_PARTIAL_INT Pmode

This patch fixes a regression caused by r251469, where I'd incorrectly
converted a call to mode_for_size that sometimes needs MODE_PARTIAL_INTs.

2017-11-22  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* emit-rtl.c (init_derived_machine_modes): Make sure ptr_mode
has the same mode class as Pmode.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255057 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/emit-rtl.c