This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/68641] undefined variables implicitly considered to be zero
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Dec 2015 11:11:18 +0000
- Subject: [Bug rtl-optimization/68641] undefined variables implicitly considered to be zero
- Auto-submitted: auto-generated
- References: <bug-68641-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68641
--- Comment #4 from rguenther at suse dot de <rguenther at suse dot de> ---
On Wed, 2 Dec 2015, ebotcazou at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68641
>
> Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Severity|normal |enhancement
>
> --- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> The whole reasoning looks fairly dubious to me, the optimizer is free to do
> whatever it wants on undefined behavior and requests that the generated code
> behaves identically at all optimization levels on it have little merit IMO.
True, just that we avoid uninitialized regs at -O1+ but not on -O0
makes this one valid.
OTOH I'd just use it as an excuse to drop init-regs.c ...