This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [trunk][patch] fix invalid sharing in see
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: "Rafael Espindola" <espindola at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, "Ian Lance Taylor" <iant at google dot com>
- Date: Fri, 23 May 2008 18:02:43 +0200
- Subject: Re: [trunk][patch] fix invalid sharing in see
- References: <38a0d8450805220330r570cd74fn4659707bdae7cf4c@mail.gmail.com>
> The attached patch fixes an invalid rtl sharing in see. A test is
> attached, to reproduce run on a x86_64
>
> ./cc1plus -fsee -O2 test.ii
>
> I would like to add test.ii to the testsuite. Where should it go?
There is a couple of problems:
- the testcase is in testsuite/gcc.c-torture/compile but it uses dg-options
so it gets compiled multiple times for little benefit (see the log file).
I think it ought to be in gcc.dg instead.
- the testcase doesn't pass with RTL checking on x86:
/home/eric/svn/gcc/gcc/testsuite/gcc.c-torture/compile/20080522-1.c: In
function 'g':
/home/eric/svn/gcc/gcc/testsuite/gcc.c-torture/compile/20080522-1.c:20:
internal compiler error: RTL check: expected code 'subreg', have 'pc' in
see_get_extension_data, at see.c:735
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
--
Eric Botcazou