Re: Preventing gcc from aligning stack???

From: Alex Romosan (romosan@adonis.lbl.gov)
Date: Fri Jan 28 2000 - 15:13:42 EST


"Johan Kullstam" <kullstam@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@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:22 EST