This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for cse: -g -O should generate same code as -O
- To: mark at markmitchell dot com
- Subject: Re: PATCH for cse: -g -O should generate same code as -O
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Wed, 17 Jun 1998 18:17:43 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199806172343.QAA20446@smtp.earthlink.net>you write:
>
> I was rather disturbed to find a test case that produced different
> output when using -g -O instead of just -O.
>
> Here's a fix.
>
> --
> Mark Mitchell mark@markmitchell.com
> Mark Mitchell Consulting http://www.markmitchell.com
>
> Wed Jun 17 16:38:57 1998 Mark Mitchell <mark@markmitchell.com>
>
> * cse.c (cse_basic_block): Don't include NOTE insns in the count
> that is used to decide whether or not it is time to erase the
> equivalence table.
Wow. Yup, it's a problem. Thanks for tracking it down.
This patch looks good to me. Please install it.
Thanks!
jeff