public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/44305]  New: warning: cast discards qualifiers from pointer target type -- -disable-bootstrap should not use  -Wcast-qual
@ 2010-05-28 10:31 jay dot krell at cornell dot edu
  2010-07-24 23:12 ` [Bug bootstrap/44305] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: jay dot krell at cornell dot edu @ 2010-05-28 10:31 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]

warning: cast discards qualifiers from pointer target type

There are at lot of these building gcc.
Including but not limited to:

../../gcc-4.5/gcc/gimple.h: In function ‘gimple_op’:
../../gcc-4.5/gcc/gimple.h:1635: warning: cast discards qualifiers from pointer
target type
../../gcc-4.5/gcc/gimple.h: In function ‘gimple_op_ptr’:
../../gcc-4.5/gcc/gimple.h:1651: warning: cast discards qualifiers from pointer
target type


Yes, I realize it is dependent on host compiler (Apple gcc 4.0.1 in my case)
and that I'm using -disable-bootstrap.

I would suggest -disable-bootstrap should not pass -Wcast-qual, and that
"regular" should not pass it in the first pass.

Unless there is another way, like __extension__ or _Pragma or #pragma GCC can
quash it on known places.


-- 
           Summary: warning: cast discards qualifiers from pointer target
                    type -- -disable-bootstrap should not use  -Wcast-qual
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jay dot krell at cornell dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44305


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

* [Bug bootstrap/44305] warning: cast discards qualifiers from pointer target type -- -disable-bootstrap should not use  -Wcast-qual
  2010-05-28 10:31 [Bug bootstrap/44305] New: warning: cast discards qualifiers from pointer target type -- -disable-bootstrap should not use -Wcast-qual jay dot krell at cornell dot edu
@ 2010-07-24 23:12 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-07-24 23:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2010-07-24 23:12 -------
--disable-bootstrap should not be used unless you know what you are doing.

Also this will not cause an error so it is hard to fix really.
/* GCC 4.0.x has a bug where it may ICE on this expression,
   so does GCC 3.4.x (PR17436).  */

This is a bug in 4.0.x witness that comment :).


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44305


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

end of thread, other threads:[~2010-07-24 23:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-28 10:31 [Bug bootstrap/44305] New: warning: cast discards qualifiers from pointer target type -- -disable-bootstrap should not use -Wcast-qual jay dot krell at cornell dot edu
2010-07-24 23:12 ` [Bug bootstrap/44305] " pinskia at gcc dot gnu dot org

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