This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [3.4 only] PR c/22589: ICE on casting to long long


Jakub Jelinek <jakub@redhat.com> writes:
> On Wed, Jul 27, 2005 at 09:12:25PM +0100, Richard Sandiford wrote:
>> > The test will fail on 64-bit architectures with:
>> > warning: cast from pointer to integer of different size
>> > IMHO either use dg-options "-w", or
>> > /* { dg-require-effective-target ilp32 } */
>> > or cast to long instead of int.
>> 
>> Thanks for catching that.  I prefer "-w", since this is a test
>> for an ICE.  Is the patch OK with that change?
>
> Or you can just move the test to gcc.c-torture/compile/ where the -w
> is on by default.

I deliberately didn't do that because there's nothing particularly
interesting from an optimisation viewpoint.  I suppose you could
argue that all testcases should be tested with all optimisation
options unless there's a particular need not to, but in the interests
of keeping testing time down, I thought it would be better to put this
sort of test in gcc.dg instead.

Richard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]