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*)&val)[i];
int result;
for (int i = 0;
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
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&root=gcc&view=rev
Log:
gcc/testsuite/
PR target/59478
* gcc.target/sh/pr59478.c: N
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 v