public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bdavis at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/42267] interaction between -finit-local-zero and -fno-automatic Date: Thu, 03 Dec 2009 19:16:00 -0000 [thread overview] Message-ID: <20091203191615.23009.qmail@sourceware.org> (raw) In-Reply-To: <bug-42267-8277@http.gcc.gnu.org/bugzilla/> ------- Comment #1 from bdavis at gcc dot gnu dot org 2009-12-03 19:16 ------- here is a patch against 4.4.1 diff --context --recursive gcc-4.4.1/gcc/fortran/gfortran.h gcc-4.4.1_bud/gcc/fortran/gfortran.h *** gcc-4.4.1/gcc/fortran/gfortran.h 2009-02-21 16:25:06.000000000 -0600 --- gcc-4.4.1_bud/gcc/fortran/gfortran.h 2009-12-03 09:24:11.000000000 -0600 *************** *** 2024,2029 **** --- 2024,2030 ---- int flag_init_character; char flag_init_character_value; int flag_align_commons; + int flag_no_automatic; int fpe; diff --context --recursive gcc-4.4.1/gcc/fortran/options.c gcc-4.4.1_bud/gcc/fortran/options.c *** gcc-4.4.1/gcc/fortran/options.c 2008-11-03 01:20:24.000000000 -0600 --- gcc-4.4.1_bud/gcc/fortran/options.c 2009-12-03 09:24:54.000000000 -0600 *************** *** 346,352 **** /* Implement -fno-automatic as -fmax-stack-var-size=0. */ if (!gfc_option.flag_automatic) ! gfc_option.flag_max_stack_var_size = 0; if (pedantic) { --- 346,355 ---- /* Implement -fno-automatic as -fmax-stack-var-size=0. */ if (!gfc_option.flag_automatic) ! { ! gfc_option.flag_no_automatic = 1; ! gfc_option.flag_max_stack_var_size = 0; ! } if (pedantic) { diff --context --recursive gcc-4.4.1/gcc/fortran/resolve.c gcc-4.4.1_bud/gcc/fortran/resolve.c *** gcc-4.4.1/gcc/fortran/resolve.c 2009-06-20 04:21:06.000000000 -0500 --- gcc-4.4.1_bud/gcc/fortran/resolve.c 2009-12-03 09:49:52.000000000 -0600 *************** *** 7486,7492 **** /* For saved variables, we don't want to add an initializer at function entry, so we just add a static initializer. */ ! if (sym->attr.save || sym->ns->save_all) { /* Don't clobber an existing initializer! */ gcc_assert (sym->value == NULL); --- 7486,7492 ---- /* For saved variables, we don't want to add an initializer at function entry, so we just add a static initializer. */ ! if (sym->attr.save || sym->ns->save_all || gfc_option.flag_no_automatic ) { /* Don't clobber an existing initializer! */ gcc_assert (sym->value == NULL); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42267
next prev parent reply other threads:[~2009-12-03 19:16 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-03 19:14 [Bug fortran/42267] New: " bdavis at gcc dot gnu dot org 2009-12-03 19:16 ` bdavis at gcc dot gnu dot org [this message] 2009-12-03 20:06 ` [Bug fortran/42267] " burnus at gcc dot gnu dot org 2009-12-03 20:21 ` bdavis at gcc dot gnu dot org 2009-12-03 20:47 ` burnus at gcc dot gnu dot org 2009-12-03 21:14 ` rguenth at gcc dot gnu dot org 2009-12-03 21:19 ` burnus at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20091203191615.23009.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).