Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.43
 
1.44
 
MAIN:ragge:20101211142537
 
code.c
_>8686                 return;
 8787         }
 8888         if (kflag) {
<> 89+#ifdef MACHOABI
  90+                loctbl[DATA] = "section .data.rel.rw,\"aw\"";
  91+                loctbl[RDATA] = "section .data.rel.ro,\"aw\"";
  92+#else
8993                 loctbl[DATA] = "section .data.rel.rw,\"aw\",@progbits";
 9094                 loctbl[RDATA] = "section .data.rel.ro,\"aw\",@progbits";
<> 95+#endif
9196         }
 9297         t = sp->stype;
 9398         s = ISFTN(t) ? PROG : ISCON(cqual(t, sp->squal)) ? RDATA : DATA;
     
 !
145150                 printf("        .weak %s\n", name);
 146151         else if (sp->sclass == EXTDEF) {
 147152                 printf("\t.globl %s\n", name);
<> 153+#ifndef MACHOABI
148154                 printf("\t.type %s,@%s\n", name,
 149155                     ISFTN(t)? "function" : "object");
<> 156+#endif
150157         }
 151158         if (sp->slevel == 0)
 152159                 printf("%s:\n", name);
     
 !
374381         if (flag)
 375382                 return;
 376383 
<> 384+#ifdef MACHOAPI
  385+#define PT(x)
  386+#else
  387+#define PT(x) printf(".type __pcc_" x ",@function\n")
  388+#endif
  389+
377390         /* printout varargs routines if used */
 378391         if (varneeds & NEED_GPNEXT) {
<>379 -                printf(".text\n.align 4\n.type __pcc_gpnext,@function\n");
  392+                printf(".text\n.align 4\n");
  393+                PT("gpnext");
380394                 printf("__pcc_gpnext:\n");
 381395                 printf("cmpl $48,(%%rdi)\njae 1f\n");
 382396                 printf("movl (%%rdi),%%eax\naddq 16(%%rdi),%%rax\n");
     
 !
385399                 printf("addq $8,8(%%rdi)\nret\n");
 386400         }
 387401         if (varneeds & NEED_FPNEXT) {
<>388 -                printf(".text\n.align 4\n.type __pcc_fpnext,@function\n");
  402+                printf(".text\n.align 4\n");
  403+                PT("fpnext");
389404                 printf("__pcc_fpnext:\n");
 390405                 printf("cmpl $176,4(%%rdi)\njae 1f\n");
 391406                 printf("movl 4(%%rdi),%%eax\naddq 16(%%rdi),%%rax\n");
     
 !
394409                 printf("addq $8,8(%%rdi)\nret\n");
 395410         }
 396411         if (varneeds & NEED_1REGREF) {
<>397 -                printf(".text\n.align 4\n.type __pcc_1regref,@function\n");
  412+                printf(".text\n.align 4\n");
  413+                PT("1regref");
398414                 printf("__pcc_1regref:\n");
 399415                 printf("cmpl $48,(%%rdi)\njae 1f\n");
 400416                 printf("movl (%%rdi),%%eax\naddq 16(%%rdi),%%rax\n");
     
 !
403419                 printf("addq $8,8(%%rdi)\nret\n");
 404420         }
 405421         if (varneeds & NEED_2REGREF) {
<>406 -                printf(".text\n.align 4\n.type __pcc_2regref,@function\n");
  422+                printf(".text\n.align 4\n");
  423+                PT("2regref");
407424                 printf("__pcc_2regref:\n");
 408425                 printf("cmpl $40,(%%rdi)\njae 1f\n");
 409426                 printf("movl (%%rdi),%%eax\naddq 16(%%rdi),%%rax\n");
     
 !
412429                 printf("addq $16,8(%%rdi)\nret\n");
 413430         }
 414431         if (varneeds & NEED_MEMREF) {
<>415 -                printf(".text\n.align 4\n.type __pcc_memref,@function\n");
  432+                printf(".text\n.align 4\n");
  433+                PT("memref");
416434                 printf("__pcc_memref:\n");
 417435                 printf("movq 8(%%rdi),%%rax\n");
 418436                 printf("addq %%rsi,8(%%rdi)\nret\n");
     
 !
422440 #define _MKSTR(x) #x
 423441 #define MKSTR(x) _MKSTR(x)
 424442 #define OS MKSTR(TARGOS)
<> 443+#ifdef MACHOABI
  444+        printf("\t.ident \"PCC: %s (%s)\"\n", PACKAGE_STRING, OS);
  445+#else
425446         printf("\t.ident \"PCC: %s (%s)\"\n\t.end\n", PACKAGE_STRING, OS);
<> 447+#endif
<_426448 }
 427449 
 428450 /*
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-02 21:04 +0200