Skip to content

Commit 1778fd4

Browse files
authored
Do not try ancient PGI hacks with recent versions of that compiler
should fix #2139
1 parent ff1bfe7 commit 1778fd4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

driver/others/memory.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,13 +1622,15 @@ void gotoblas_dummy_for_PGI(void) {
16221622
gotoblas_init();
16231623
gotoblas_quit();
16241624

1625+
#if __PGIC__ < 19
16251626
#if 0
16261627
asm ("\t.section\t.ctors,\"aw\",@progbits; .align 8; .quad gotoblas_init; .section .text");
16271628
asm ("\t.section\t.dtors,\"aw\",@progbits; .align 8; .quad gotoblas_quit; .section .text");
16281629
#else
16291630
asm (".section .init,\"ax\"; call gotoblas_init@PLT; .section .text");
16301631
asm (".section .fini,\"ax\"; call gotoblas_quit@PLT; .section .text");
16311632
#endif
1633+
#endif
16321634
}
16331635
#endif
16341636

@@ -3192,14 +3194,15 @@ void gotoblas_dummy_for_PGI(void) {
31923194

31933195
gotoblas_init();
31943196
gotoblas_quit();
3195-
3197+
#if __PGIC__ < 19
31963198
#if 0
31973199
asm ("\t.section\t.ctors,\"aw\",@progbits; .align 8; .quad gotoblas_init; .section .text");
31983200
asm ("\t.section\t.dtors,\"aw\",@progbits; .align 8; .quad gotoblas_quit; .section .text");
31993201
#else
32003202
asm (".section .init,\"ax\"; call gotoblas_init@PLT; .section .text");
32013203
asm (".section .fini,\"ax\"; call gotoblas_quit@PLT; .section .text");
32023204
#endif
3205+
#endif
32033206
}
32043207
#endif
32053208

0 commit comments

Comments
 (0)