public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gabriel Dos Reis <gdr@codesourcery.com>
To: Joe Buck <jbuck@synopsys.com>
Cc: rodrigc@mediaone.net (Craig Rodrigues), gcc@gcc.gnu.org
Subject: Re: #include <new.h> now causes a warning
Date: Fri, 10 Aug 2001 11:55:00 -0000	[thread overview]
Message-ID: <flk80beodx.fsf@jambon.cmla.ens-cachan.fr> (raw)
In-Reply-To: <200108101820.LAA12088@atrus.synopsys.com>

Joe Buck <jbuck@synopsys.COM> writes:

| > gcc version 3.1 20010808 (experimental)
| > 
| > The problem is solved, but elsewhere, I am getting
| > the following warning:
| 
| > ###########################################################################
| > g++ -W -Wall -Wpointer-arith -pipe -O3 -g -Wno-uninitialized -fno-implicit-templates   -D_POSIX_THREADS -D_POSIX_THREAD_SAFE_FUNCTIONS -D_REENTRANT -DACE_HAS_AIO_CALLS  -I/opt2/home/craigr/ACE_wrappers -DACE_HAS_RAPI -I/usr/include/rsvp -DACE_HAS_EXCEPTIONS  -c -fPIC -o .shobj/OS.o OS.cpp
| > 
| > In file included from /usr/local/include/g++-v3/backward/new.h:33,
| >                  from /opt2/home/craigr/ACE_wrappers/ace/OS.h:2950,
| >                  from OS.cpp:3:
| > /usr/local/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please use the <X> header instead of <X.h> header for 'C++' includes and use the <cX> header instead of <X.h> header for 'C' includes. To disable this warning use -Wno-deprecated.
| > 
| > ###########################################################################
| 
| I think that -Wdeprecated should not be implied by -Wall, but should be
| asked for explicitly.

Joe,

  I have no opinion on that.  However, there ought to be a way to
educate users to move to standard headers as soon as possible.

|  Otherwise there is way too much perfectly valid,
| standards-conformant code out there that will now issue a sea of warnings,

There can't be any standard-conformant way to trigger those warnings.

[...]

| For example, it will tell people to turn <math.h> into <cmath>, resulting
| in a program that won't compile with the current default compiler on any
| GNU/Linux platform.

Is that *really* the case? 

C-headers are not backward headers and I don't see how they can
trigger that warning.

-- Gaby

  reply	other threads:[~2001-08-10 11:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-10 10:51 Craig Rodrigues
2001-08-10 11:20 ` Joe Buck
2001-08-10 11:55   ` Gabriel Dos Reis [this message]
2001-08-10 13:04     ` Joe Buck
2001-08-10 14:04       ` Gabriel Dos Reis
2001-09-27 12:45         ` Magnus Fromreide
2001-09-27 15:23           ` Gabriel Dos Reis
2001-08-11  9:24       ` Craig Rodrigues
2001-08-11 10:07         ` Gabriel Dos Reis

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=flk80beodx.fsf@jambon.cmla.ens-cachan.fr \
    --to=gdr@codesourcery.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jbuck@synopsys.com \
    --cc=rodrigc@mediaone.net \
    /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).