From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c818447ef81c263f X-Google-Attributes: gidfee84,public From: Jeff Sullivan Subject: Re: [Help]gcc ignored #pragma pack on DEC/OSF1 4.0B Date: 1998/01/05 Message-ID: <34B10DAE.6A209479@zk3.dec.com>#1/1 X-Deja-AN: 313001192 References: <689ng7$ja2@news.seed.net.tw> <34A918FF.EE41F28F@zk3.dec.com> <6c1zytk51r.fsf@dextrose.atria.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2D4C048E42D9E6BD9469C2D5" Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 This is a multi-part message in MIME format. --------------2D4C048E42D9E6BD9469C2D5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit John Kohl wrote: > Ok, you asked for it... (warning, flame-bait follows :) > Why is -std1 not the default mode of operation (or at least -std)? > C has been standardized for 8 years now, shouldn't the default mode of > the compiler, without extra flags, be the standard behavior? Let those > who still insist on non-standard K&R C provide the command line flag(s). Coming soon to a compiler near you... The default mode for DEC C in DIGITAL UNIX V5.0 will be -std (relaxed ANSI). This will give you the checking and features that "well behaved" (ANSI) source code will benefit from in addition to some common extensions to make the code easier to compile/run on many platforms. You would be surprised at the amount of source code out there that is not ANSI compliant, even to this day. You can, however, change your default in previous versions of DEC C by editing the comp.config file in /usr/lib/cmplrs/cc. See man cc(1) for more info. -Jeff --------------2D4C048E42D9E6BD9469C2D5 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Jeff Sullivan Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Jeff Sullivan n: Sullivan;Jeff org: Digital Equipment Corporation email;internet: jps@zk3.dec.com title: Principal Software Engineer note;quoted-printable:http://www.digital.com/=0D=0A= x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------2D4C048E42D9E6BD9469C2D5--