[Bug tree-optimization/59478] Optimize variable access via byte copy

2018-11-19 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59478 --- Comment #4 from Oleg Endo --- Just checked on GCC 9 ... The case int float_as_int (float val) { char valbytes[sizeof (float)]; for (int i = 0; i < sizeof (float); ++i) valbytes[i] = ((char*))[i]; int result; for (int i = 0; i

[Bug tree-optimization/59478] Optimize variable access via byte copy

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59478 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #3

[Bug tree-optimization/59478] Optimize variable access via byte copy

2015-09-20 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59478 --- Comment #2 from Oleg Endo --- Author: olegendo Date: Mon Sep 21 01:43:50 2015 New Revision: 227958 URL: https://gcc.gnu.org/viewcvs?rev=227958=gcc=rev Log: gcc/testsuite/ PR target/59478 * gcc.target/sh/pr59478.c: New.

[Bug tree-optimization/59478] Optimize variable access via byte copy

2015-09-11 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59478 --- Comment #1 from Oleg Endo --- (In reply to Oleg Endo from comment #0) > This happens at least on SH with trunk rev 205905 (4.9). > I'm not sure whether these are target specific or not. > > Accessing float values as integers can be done in