* Fix bootstrap (checked in)
@ 2007-08-09 13:57 Michael Matz
2007-08-09 14:15 ` Dave Korn
0 siblings, 1 reply; 2+ messages in thread
From: Michael Matz @ 2007-08-09 13:57 UTC (permalink / raw)
To: gcc-patches
Hi,
to fix bootstrap (warning-as-error) I've checked in the below patch.
Only lightly tested with a x86_64 C only bootstrap.
Ciao,
Michael.
--
* tree.h (fixed_zerop): Declare as taking a const_tree.
* tree.c (fixed_zerop): Take a const_tree.
Index: tree.c
===================================================================
--- tree.c (revision 127315)
+++ tree.c (working copy)
@@ -1460,7 +1460,7 @@ integer_nonzerop (const_tree expr)
/* Return 1 if EXPR is the fixed-point constant zero. */
int
-fixed_zerop (tree expr)
+fixed_zerop (const_tree expr)
{
return (TREE_CODE (expr) == FIXED_CST
&& double_int_zero_p (TREE_FIXED_CST (expr).data));
Index: tree.h
===================================================================
--- tree.h (revision 127315)
+++ tree.h (working copy)
@@ -4429,7 +4429,7 @@ extern tree num_ending_zeros (const_tree
/* fixed_zerop (tree x) is nonzero if X is a fixed-point constant of
value 0. */
-extern int fixed_zerop (tree);
+extern int fixed_zerop (const_tree);
/* staticp (tree x) is nonzero if X is a reference to data allocated
at a fixed address in memory. Returns the outermost data. */
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Fix bootstrap (checked in)
2007-08-09 13:57 Fix bootstrap (checked in) Michael Matz
@ 2007-08-09 14:15 ` Dave Korn
0 siblings, 0 replies; 2+ messages in thread
From: Dave Korn @ 2007-08-09 14:15 UTC (permalink / raw)
To: 'Michael Matz', gcc-patches
On 09 August 2007 14:57, Michael Matz wrote:
> Hi,
>
> to fix bootstrap (warning-as-error) I've checked in the below patch.
> Only lightly tested with a x86_64 C only bootstrap.
You should mention PR33031 in the ChangeLog, or point to this patch from the
PR...
cheers,
DaveK
--
Can't think of a witty .sigline today....
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-09 14:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-09 13:57 Fix bootstrap (checked in) Michael Matz
2007-08-09 14:15 ` Dave Korn
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).