public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix warnings building pdp11 port
@ 2015-09-29 18:11 Jeff Law
  2015-09-29 18:36 ` Trevor Saunders
  2015-09-30  8:14 ` Richard Biener
  0 siblings, 2 replies; 7+ messages in thread
From: Jeff Law @ 2015-09-29 18:11 UTC (permalink / raw)
  To: gcc-patches@gcc.gnu.org >> gcc-patches

The pdp11 port fails to build with the trunk because of a warning. 
Essentially VRP determines that the result of using BRANCH_COST is a 
constant with the range [0..1].  That's always less than 4, 3 and the 
various other magic constants used with BRANCH_COST and VRP issues a 
warning about that comparison.

I expect we're going to be overhauling BRANCH_COST shortly.  In the mean 
time, this just revectors BRANCH_COST for the pdp11 into a function to 
prevent VRP from collapsing the test and issuing the warning.

Yes, this means more code in the pdp11 cross compiler.  I'm not terribly 
concerned about that and I couldn't stand the idea of scattering 
diagnostic push/pop stuff all over the place to make just the pdp11 port 
happy.


Tested by building the pdp11 targets from config-all.mk.

Installed on the trunk.

Jeff

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-01 15:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-29 18:11 [PATCH] Fix warnings building pdp11 port Jeff Law
2015-09-29 18:36 ` Trevor Saunders
2015-09-29 18:54   ` Jeff Law
2015-09-30  8:14 ` Richard Biener
2015-09-30 17:44   ` Jeff Law
2015-10-01  9:49     ` Richard Biener
2015-10-01 15:47       ` Jeff Law

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).