Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: gcc/gcc/testsuite/gcc.dg/ipa/ipa-4.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/ipa/ipa-2.c ('k') | gcc/gcc/testsuite/gcc.dg/ipa/modif-1.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* { dg-do compile } */ 1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp" } */ 2 /* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp -fno-early-inlining" } */
3 /* { dg-skip-if "PR 25442" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */ 3 /* { dg-add-options bind_pic_locally } */
4 4
5 #include <stdio.h> 5 #include <stdio.h>
6 int g (int b, int c) 6 int g (int b, int c)
7 { 7 {
8 printf ("%d %d\n", b, c); 8 printf ("%d %d\n", b, c);
9 } 9 }
10 int f (int a) 10 int f (int a)
11 { 11 {
12 /* First and second parameter of g gets different values. */ 12 /* First and second parameter of g gets different values. */
13 13
14 if (a > 0) 14 if (a > 0)
15 g (a, 3); 15 g (a, 3);
16 else 16 else
17 g (a+1, 5); » 17 g (a+1, 5);
18 } 18 }
19 int main () 19 int main ()
20 { 20 {
21 f (7); 21 int i;
22 return 0;» 22 for (i = 0; i < 100; i++)
23 f (7);
24 return 0;
23 } 25 }
24 26
25 27
26 /* { dg-final { scan-ipa-dump-times "versioned function" 1 "cp" } } */ 28 /* { dg-final { scan-ipa-dump-times "versioned function" 1 "cp" } } */
27 /* { dg-final { scan-ipa-dump-times "replacing param a with const 7" 1 "cp" } } */ 29 /* { dg-final { scan-ipa-dump-times "replacing param a with const 7" 1 "cp" } } */
28 /* { dg-final { cleanup-ipa-dump "cp" } } */ 30 /* { dg-final { cleanup-ipa-dump "cp" } } */
OLDNEW
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/ipa/ipa-2.c ('k') | gcc/gcc/testsuite/gcc.dg/ipa/modif-1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698