This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix incorrect discriminator assignment.
- From: Dehao Chen <dehao at google dot com>
- To: Cary Coutant <ccoutant at google dot com>
- Cc: Andreas Schwab <schwab at linux-m68k dot org>, Rainer Orth <ro at cebitec dot uni-bielefeld dot de>, Mike Stump <mrs at mrs dot kithrup dot com>, Eric Botcazou <ebotcazou at adacore dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 30 May 2013 10:58:35 -0700
- Subject: Re: [PATCH] Fix incorrect discriminator assignment.
- References: <CAO2gOZVtO8Ux9HdCaMuSSzS8Rxk2usyVDBo+ba9_ehT1POyF0w at mail dot gmail dot com> <2793520 dot f28ygdVO2W at polaris> <CAO2gOZU6_0ciDN5eAangX+LNyv33V7wkSFywz=nfomBjnHwiUA at mail dot gmail dot com> <31BD98EB-D529-43F1-8FD5-101387129806 at mrs dot kithrup dot com> <yddbo7urvdu dot fsf at lokon dot CeBiTec dot Uni-Bielefeld dot DE> <m21u8ooo75 dot fsf at linux-m68k dot org> <CAO2gOZV636-rqOw-8R_t2WJBMYju3V6PS0Do-PhsZmQmREBtGg at mail dot gmail dot com> <CAHACq4oxCnFBnXKoHHo6h2c0USRJ6GzhjZ5EuFEJBt2HozpExQ at mail dot gmail dot com>
On Thu, May 30, 2013 at 10:41 AM, Cary Coutant <ccoutant@google.com> wrote:
>> That's weird cause in dwarf2.exp:
>>
>> # If a testcase doesn't have special options, use these.
>> global DEFAULT_CFLAGS
>> if ![info exists DEFAULT_CFLAGS] then {
>> set DEFAULT_CFLAGS " -ansi -pedantic-errors -gdwarf-2"
>> }
>>
>> But anyway, shall I add the -gdwarf-2 option back to discriminator.c?
>
> I think that gets overridden by dg-options. If you use {
> dg-additional-options "-O2" } instead, it should still pass -gdwarf-2
> (along with the other two).
In the current test, I didn't use dg-options, but dg-additional-options instead:
/* { dg-additional-options "-O0" } */
Dehao
>
> -cary