This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [RFC] libffi testsuite gcc flags?
- From: David Daney <ddaney at avtrex dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: GCC Mailing List <gcc at gcc dot gnu dot org>, java at gcc dot gnu dot org
- Date: Fri, 24 Feb 2006 13:55:02 -0800
- Subject: Re: [RFC] libffi testsuite gcc flags?
- References: <43FB9850.5050401@pop.agri.ch>
Andreas Tobler wrote:
Hello all,
I recently recognized that we run the libffi testsuite without any gcc
flags like -Ox or so. This had the effect that a test case was failing
since it fell in the area of PR 323. return_fl2.c was compiled with -O0.
Now my question, would it make sense to run the testsuite with different
opt flags like -O0, -O2 ...?
The ABI should stay the same over all opt flags, yes, but real life apps
usually use -O2 right?
It could be done easily by just running the suite again with a different
set.
(I used -W -Wall to clean up the test cases from warnings, a patch which
will follow soon)
Comments?
I think it is an excellent idea. I for one normally use -O3 (not -O2).
But testing with both -O0 and -O[s23] makes a lot of sense to me.
David Daney