public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
To: egcs@cygnus.com
Cc: ghazi@caip.rutgers.edu
Subject: egcs-980315, WARNING fixes part 2 (minor addition)
Date: Tue, 17 Mar 1998 08:42:00 -0000	[thread overview]
Message-ID: <199803171537.KAA10985@caip.rutgers.edu> (raw)

	Here is another small warning fix.  It is okay to install?

		--Kaveh



Mon Mar 16 22:32:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* final.c (shorten_branches): Add parentheses around +/- in
	operand of &.

	* flow.c (life_analysis): Wrap variable `i' in macro ELIMINABLE_REGS.


diff -rup orig/egcs-980315/gcc/final.c egcs-980315/gcc/final.c
--- orig/egcs-980315/gcc/final.c	Mon Mar 16 22:21:15 1998
+++ egcs-980315/gcc/final.c	Mon Mar 16 22:11:56 1998
@@ -1165,7 +1165,7 @@ shorten_branches (first)
 	  if (log)
 	    {
 	      int align = 1 << log;
-	      int new_address = insn_current_address + align - 1 & -align;
+	      int new_address = (insn_current_address + align - 1) & -align;
 	      insn_lengths[uid] = new_address - insn_current_address;
 	      insn_current_address = new_address;
 	    }
@@ -1268,7 +1268,7 @@ shorten_branches (first)
 	      if (log > insn_current_align)
 		{
 		  int align = 1 << log;
-		  int new_address= insn_current_address + align - 1 & -align;
+		  int new_address= (insn_current_address + align - 1) & -align;
 		  insn_lengths[uid] = new_address - insn_current_address;
 		  insn_current_align = log;
 		  insn_current_address = new_address;
diff -rup orig/egcs-980315/gcc/flow.c egcs-980315/gcc/flow.c
--- orig/egcs-980315/gcc/flow.c	Mon Mar 16 22:21:59 1998
+++ egcs-980315/gcc/flow.c	Mon Mar 16 22:13:53 1998
@@ -961,7 +961,9 @@ life_analysis (f, nregs, file)
      int nregs;
      FILE *file;
 {
+#ifdef ELIMINABLE_REGS
   register size_t i;
+#endif
 
 #ifdef ELIMINABLE_REGS
   static struct {int from, to; } eliminables[] = ELIMINABLE_REGS;

             reply	other threads:[~1998-03-17  8:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-17  8:42 Kaveh R. Ghazi [this message]
1998-03-18 16:14 ` Jim Wilson
1998-03-19 21:47 Kaveh R. Ghazi
1998-03-19 15:36 ` Jim Wilson

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=199803171537.KAA10985@caip.rutgers.edu \
    --to=ghazi@caip.rutgers.edu \
    --cc=egcs@cygnus.com \
    /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: link
Be 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).