2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / 990524-1.c
blobe94114ad93e48883d7ce4ed5246da372d1424996
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ia32 } */
3 /* { dg-options "-O2 -march=pentiumpro" } */
5 typedef struct t_anim_info {
6 char *new_filename;
7 long first_frame_nr;
8 } t_anim_info;
9 void gimp_image_delete(int);
10 static int
11 p_frames_to_multilayer(t_anim_info *ainfo_ptr,
12 long range_from, long range_to)
14 long l_cur_frame_nr;
15 long l_step, l_begin, l_end;
16 int l_tmp_image_id;
17 int l_new_image_id;
18 if(range_from > range_to)
20 l_step = -1;
21 if(range_to < ainfo_ptr->first_frame_nr)
22 { l_begin = ainfo_ptr->first_frame_nr;
25 else
27 l_step = 1;
29 l_cur_frame_nr = l_begin;
30 while(1)
32 if(ainfo_ptr->new_filename == ((void *)0) )
33 if(l_tmp_image_id < 0)
34 gimp_image_delete(l_tmp_image_id);
35 if(l_cur_frame_nr == l_end)
36 break;
37 l_cur_frame_nr += l_step;
39 return 0;