This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
This patch avoids fold_convert bombing when the types are not variants of the same base type. It is necessary to avoid regressing with the next patch. It tries to take the VIEW_CONVERT_EXPR path only when it is necessary and use the usual fold_convert otherwise. I use gfc_nonrestricted_type in one assertion, so I had to make it public For what it's worth, I had another version of this patch which tried harder to not use VIEW_CONVERT_EXPR by carefully avoiding copying the data pointer (which is overwritten just after anyway). However, as I didn't want to pull in the scalarizer to assign arrays, I couldn't avoid VIEW_CONVERT_EXPR in all cases, so I finally preferred this (simpler) patch. OK?
Attachment:
pr45586-1.CL
Description: Text document
Attachment:
pr45586_v7-1.patch
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |