public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Kaveh R. GHAZI" <ghazi@caip.rutgers.edu>
To: Ian Lance Taylor <iant@google.com>
Cc: gcc-patches@gcc.gnu.org, dnovillo@google.com,
	gdr@integrable-solutions.net,         richard.guenther@gmail.com
Subject: Re: [CONFIGUREY PATCH]: place -Wcast-qual and -Wc++-compat under  -Werror
Date: Sun, 29 Jun 2008 07:13:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.58.0806290150260.8022@caipclassic.rutgers.edu> (raw)
In-Reply-To: <m3vdzsyk92.fsf@google.com>

On Sat, 28 Jun 2008, Ian Lance Taylor wrote:

> "Kaveh R. GHAZI" <ghazi@caip.rutgers.edu> writes:
>
> > 2008-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
> >
> > 	* Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
> > 	(bitmap.o-warn, dominance.o-warn): New.
> > 	* configure.ac (cxx_compat_warn): Delete.
> > 	(loose_warn): Add -Wcast-qual and -Wc++-compat.
> > 	* system.h: Remove #pragma diagnostic for -Wcast-qual and
> > 	-Wc++-compat.
> > 	* configure: Regenerate.
> >
> > cp:
> > 	* Make-lang.in (cp-warn): Delete $(CXX_COMPAT_WARN).
> >
> > java:
> > 	* Make-lang.in (java/jcf-io.o-warn): New.
>
> This is OK when it bootstraps without any other patches.
> Thanks.
> Ian


Well, it used to bootstrap. :-)  I retested today before installing it and
there was one warning regression.  Fixed by the patch below and installed
as obvious.  I'll keep an eye out for problems, but given the
cross-compiling I did I hope there won't be any.

		Thanks,
		--Kaveh



2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
	warnings.

diff -rup orig/egcc-SVN20080629/gcc/optabs.c egcc-SVN20080629/gcc/optabs.c
--- orig/egcc-SVN20080629/gcc/optabs.c	2008-06-29 02:02:14.000000000 +0200
+++ egcc-SVN20080629/gcc/optabs.c	2008-06-29 07:12:26.000000000 +0200
@@ -5992,13 +5992,13 @@ static GTY ((param_is (union tree_node))
 static hashval_t
 libfunc_decl_hash (const void *entry)
 {
-  return htab_hash_string (IDENTIFIER_POINTER (DECL_NAME ((tree) entry)));
+  return htab_hash_string (IDENTIFIER_POINTER (DECL_NAME ((const_tree) entry)));
 }

 static int
 libfunc_decl_eq (const void *entry1, const void *entry2)
 {
-  return DECL_NAME ((tree) entry1) == (tree) entry2;
+  return DECL_NAME ((const_tree) entry1) == (const_tree) entry2;
 }

 rtx

      reply	other threads:[~2008-06-29  5:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-27  1:26 Kaveh R. GHAZI
2008-06-29  5:52 ` Ian Lance Taylor
2008-06-29  7:13   ` Kaveh R. GHAZI [this message]

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=Pine.GSO.4.58.0806290150260.8022@caipclassic.rutgers.edu \
    --to=ghazi@caip.rutgers.edu \
    --cc=dnovillo@google.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdr@integrable-solutions.net \
    --cc=iant@google.com \
    --cc=richard.guenther@gmail.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).