Preventing gcc from aligning stack???

Alex Romosan romosan en adonis.lbl.gov
Vie Ene 28 17:22:26 CST 2000


"Johan Kullstam" <kullstam en ne.mediaone.net> writes:

> strength-reduction is broken again in gcc-2.95.2 (aka the current
> release).  i'm not sure about what versions actually do work.
> 
> for fun, try this one out.  cut and paste the program bug.c.
> 
> $ gcc -O2 bug.c -o b0
> $ gcc -O2 -fno-strength-reduce bug.c -o b1
> 
> run b1.  notice it finish immediately.
> now run b0.  notice how b0 never terminates (until you ^C it).
> 

not on my computer (gcc version 2.95.2 20000116 (Debian GNU/Linux)).
both b0 and b1 finish right away.

--alex--

-- 
| I believe the moment is at hand when, by a paranoiac and active |
|  advance of the mind, it will be possible (simultaneously with  |
|  automatism and other passive states) to systematize confusion  |
|  and thus to help to discredit completely the world of reality. |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



Más información sobre la lista de distribución Ayuda