Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.250
 
1.251
 
MAIN:ragge:20090209172123
 
pftn.c
_>16711671                         tc->imag = 1;
 16721672                         break;
 16731673                 default:
<>1674 -                        cerror("typenode");
  1674+                        cerror("typwalk");
16751675                 }
 16761676         }
 16771677 
     
 !
17181718                 tc.type = UCHAR;
 17191719 
 17201720 #ifdef GCC_COMPAT
<>1721 -        if (pragma_packed|pragma_allpacked|pragma_aligned) {
 1722 -                extern NODE *bdty(int op, ...);
 1723 -
  1721+        if (pragma_allpacked && tc.saved && ISSOU(tc.saved->n_type)) {
  1722+                /* Only relevant for structs and unions */
  1723+                q = bdty(CALL, bdty(NAME, "packed"), bcon(pragma_allpacked));
  1724+                tc.posta = (tc.posta == NIL ? q : cmop(tc.posta, q));
  1725+        } else if (pragma_packed) {
  1726+                q = bdty(CALL, bdty(NAME, "packed"), bcon(pragma_packed));
  1727+                tc.posta = (tc.posta == NIL ? q : cmop(tc.posta, q));
  1728+        }
  1729+        if (pragma_aligned) {
17241730                 /* Deal with relevant pragmas */
<>1725 -                if (pragma_aligned)
 1726 -                        tc.posta = bdty(CALL, bdty(NAME, "aligned"),
 1727 -                            bcon(pragma_aligned));
 1728 -                if (pragma_packed || pragma_allpacked) {
 1729 -                        q = bdty(NAME, "packed");
 1730 -                        tc.posta = (tc.posta == NIL ? q : cmop(p, q));
 1731 -                }
 1732 -                pragma_aligned = pragma_packed = 0;
  1731+                q = bdty(CALL, bdty(NAME, "aligned"), bcon(pragma_aligned));
  1732+                tc.posta = (tc.posta == NIL ? q : cmop(tc.posta, q));
17331733         }
<> 1734+        pragma_aligned = pragma_packed = 0;
<_17341735         if (tc.posta) {
 17351736                 /* Can only occur for TYPEDEF, STRUCT or UNION */
 17361737                 if (tc.saved == NULL)
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-18 10:35 +0100