Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/20020312-2.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
5 definition of PIC_OFFSET_TABLE_REGNUM was incorrectly not INVALID_REGNUM | 5 definition of PIC_OFFSET_TABLE_REGNUM was incorrectly not INVALID_REGNUM |
6 when !flag_pic for most targets. */ | 6 when !flag_pic for most targets. */ |
7 | 7 |
8 /* { dg-do run } */ | 8 /* { dg-do run } */ |
9 /* { dg-options "-O -fno-pic" } */ | 9 /* { dg-options "-O -fno-pic" } */ |
10 /* { dg-additional-options "-no-pie" { target pie_enabled } } */ | |
10 /* { dg-require-effective-target nonlocal_goto } */ | 11 /* { dg-require-effective-target nonlocal_goto } */ |
11 | 12 |
12 extern void abort (void); | 13 extern void abort (void); |
13 | 14 |
14 #if defined(__alpha__) | 15 #if defined(__alpha__) |
109 /* No pic register. */ | 110 /* No pic register. */ |
110 #elif defined(__MSP430__) | 111 #elif defined(__MSP430__) |
111 /* No pic register. */ | 112 /* No pic register. */ |
112 #elif defined (__nvptx__) | 113 #elif defined (__nvptx__) |
113 /* No pic register. */ | 114 /* No pic register. */ |
115 #elif defined (__csky__) | |
116 /* Pic register is r28, but some cores only have r0-r15. */ | |
117 # if defined (__CK807__) || defined (__CK810__) | |
118 # define PIC_REG "r28" | |
119 # endif | |
114 #else | 120 #else |
115 # error "Modify the test for your target." | 121 # error "Modify the test for your target." |
116 #endif | 122 #endif |
117 | 123 |
118 #if defined PIC_REG && !defined __PIC__ && !defined __pic__ | 124 #if defined PIC_REG && !defined __PIC__ && !defined __pic__ |