Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.16
 
1.17
 
MAIN:gmcgarry:20080808123138
 
local.c
_>635635         NODE *p;
 636636 
 637637         defloc(sp);
<>638 -        p = bcon(0);
  638+        p = xbcon(0, NULL, WCHAR_TYPE);
639639         do {
 640640                 if (*s++ == '\\')
 641641                         p->n_lval = esccon(&s);
     
 !
899899         return bcon(0);
 900900 }
 901901 
<> 902+static int constructor;
  903+static int destructor;
  904+
902905 /*
 903906  * Give target the opportunity of handling pragmas.
 904907  */
 905908 int
 906909 mypragma(char **ary)
 907910 {
<> 911+        if (strcmp(ary[1], "tls") == 0) {
  912+                uerror("thread-local storage not supported for this target");
  913+                return 1;
  914+        }
  915+        if (strcmp(ary[1], "constructor") == 0 || strcmp(ary[1], "init") == 0) {
  916+                constructor = 1;
  917+                return 1;
  918+        }
  919+        if (strcmp(ary[1], "destructor") == 0 || strcmp(ary[1], "fini") == 0) {
  920+                destructor = 1;
  921+                return 1;
  922+        }
  923+
908924         return 0;
 909925 }
 910926 
     
 !
914930 void
 915931 fixdef(struct symtab *sp)
 916932 {
<> 933+        if ((constructor || destructor) && (sp->sclass != PARAM)) {
  934+                printf("\t.section .%ctors,\"aw\",@progbits\n",
  935+                    constructor ? 'c' : 'd');
  936+                printf("\t.p2align 2\n");
  937+                printf("\t.long %s\n", exname(sp->sname));
  938+                constructor = destructor = 0;
  939+        }
917940 }
<_ 941+
  942+void
  943+pass1_lastchance(struct interpass *ip)
  944+{
  945+}
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-10-02 08:27 +0200