This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to support #pragma pack(push,<n>) and #pragma pack(pop)
- To: law at cygnus dot com
- Subject: Re: Patch to support #pragma pack(push,<n>) and #pragma pack(pop)
- From: Craig Burley <burley at gnu dot org>
- Date: Mon, 21 Sep 1998 13:21:16 -0400 (EDT)
- Cc: nickc at cygnus dot com, egcs-patches at cygnus dot com, mark at markmitchell dot com, scox at cygnus dot com, brolley at cygnus dot com
- Cc: burley at gnu dot org
>Does it really make sense to allow pragmas in Chill or Fortran? If
>it doesn't, then I'd just assume not have them link in c-pragma.
Good question. g77 already supports the limited sort of preprocessing
directive output by cpp, e.g. "# 2 <filename>". I don't know if this
means it should support #pragma, but presumably cpp passes those
along....
But, seems like a front end should include c-pragma only if it "knows"
it needs it. g77 doesn't need it yet, AFAIK.
>Can't those languages use attributes to handle this stuff?
Yes, they could and should, IMO, though that's probably a long way
away for g77.
tq vm, (burley)