public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc++/27232]  New: encode-3.mm fails with "deprecated conversion" warning
@ 2006-04-21  0:16 janis at gcc dot gnu dot org
  2006-04-21 23:39 ` [Bug objc++/27232] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-04-21  0:16 UTC (permalink / raw)
  To: gcc-bugs

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

When run on powerpc-linux, test obj-c++.dg/encode-3.mm fails with an unexpected
warning:

elm3b11% /opt/gcc-nightly/trunk-20060420/bin/g++ -c encode-3.mm
encode-3.mm: In function ‘int main()’:
encode-3.mm:18: warning: deprecated conversion from string constant to ‘char*’'

Test results for lots of other targets show the test failing.


-- 
           Summary: encode-3.mm fails with "deprecated conversion" warning
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org


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


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

* [Bug objc++/27232] encode-3.mm fails with "deprecated conversion" warning
  2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
@ 2006-04-21 23:39 ` pinskia at gcc dot gnu dot org
  2007-11-22 14:09 ` danglin at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-21 23:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-21 23:39 -------
*** Bug 27248 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danglin at gcc dot gnu dot
                   |                            |org


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


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

* [Bug objc++/27232] encode-3.mm fails with "deprecated conversion" warning
  2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
  2006-04-21 23:39 ` [Bug objc++/27232] " pinskia at gcc dot gnu dot org
@ 2007-11-22 14:09 ` danglin at gcc dot gnu dot org
  2008-02-08  1:41 ` ghazi at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-11-22 14:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from danglin at gcc dot gnu dot org  2007-11-22 14:08 -------
Execution fails on hppa64-hp-hpux11.11.


-- 


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


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

* [Bug objc++/27232] encode-3.mm fails with "deprecated conversion" warning
  2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
  2006-04-21 23:39 ` [Bug objc++/27232] " pinskia at gcc dot gnu dot org
  2007-11-22 14:09 ` danglin at gcc dot gnu dot org
@ 2008-02-08  1:41 ` ghazi at gcc dot gnu dot org
  2008-02-08  5:35 ` ghazi at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-02-08  1:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from ghazi at gcc dot gnu dot org  2008-02-08 01:40 -------
This testcase has execution failure on mainline for i686 and x86_64:
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00466.html
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00441.html

On 4.2.x, it passes on both systems:
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00468.html
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00366.html

on 4.1.x, it passes on i686 but fails on x86_64:
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00365.html
http://gcc.gnu.org/ml/gcc-testresults/2008-02/msg00469.html

Between 4.1 and 4.2, there are some changes to the testcase itself that look
like support for lp64 systems.  I believe that explains the failure on 4.1 on
x86_64.  I believe if I backport that testsuite change to 4.1, the testcase
might pass.

However it fails everywhere on mainline, so that is a regression.


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ghazi at gcc dot gnu dot
                   |                            |org, mrs at apple dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.0
   Last reconfirmed|0000-00-00 00:00:00         |2008-02-08 01:40:58
               date|                            |


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


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

* [Bug objc++/27232] encode-3.mm fails with "deprecated conversion" warning
  2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-02-08  1:41 ` ghazi at gcc dot gnu dot org
@ 2008-02-08  5:35 ` ghazi at gcc dot gnu dot org
  2008-02-10  5:44 ` ghazi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-02-08  5:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ghazi at gcc dot gnu dot org  2008-02-08 05:34 -------
If I backport this patch to 4.1:

http://gcc.gnu.org/ml/gcc-patches/2006-09/msg01001.html

the testcase compiles with gcc-4.1 and executes on x86_64.


-- 


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


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

* [Bug objc++/27232] encode-3.mm fails with "deprecated conversion" warning
  2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-02-08  5:35 ` ghazi at gcc dot gnu dot org
@ 2008-02-10  5:44 ` ghazi at gcc dot gnu dot org
  2008-02-11  4:41 ` ghazi at gcc dot gnu dot org
  2008-02-11  4:56 ` ghazi at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-02-10  5:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ghazi at gcc dot gnu dot org  2008-02-10 05:43 -------
Subject: Bug 27232

Author: ghazi
Date: Sun Feb 10 05:42:55 2008
New Revision: 132212

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132212
Log:
        PR objc++/27232

        Backport:
        2006-09-22  Mike Stump  <mrs@apple.com>

        * obj-c++.dg/encode-3.mm: Fix for 64-bit support.


Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_1-branch/gcc/testsuite/obj-c++.dg/encode-3.mm


-- 


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


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

* [Bug objc++/27232] encode-3.mm fails with "deprecated conversion" warning
  2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-02-10  5:44 ` ghazi at gcc dot gnu dot org
@ 2008-02-11  4:41 ` ghazi at gcc dot gnu dot org
  2008-02-11  4:56 ` ghazi at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-02-11  4:41 UTC (permalink / raw)
  To: gcc-bugs



-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ghazi at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-02-08 01:40:58         |2008-02-11 04:41:10
               date|                            |


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


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

* [Bug objc++/27232] encode-3.mm fails with "deprecated conversion" warning
  2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-02-11  4:41 ` ghazi at gcc dot gnu dot org
@ 2008-02-11  4:56 ` ghazi at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2008-02-11  4:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from ghazi at gcc dot gnu dot org  2008-02-11 04:56 -------
The original issue reported in here was a "deprecated conversion" warning in
gcc-4.2.  Later on to confuse things an execution failure was noted on mainline
and an LP64 problem was reported on gcc-4.1 in the same testcase.

The "deprecated conversion" warning was fixed long ago on 4.2 by the same patch
that fixed LP64.  There was a constification snuck in there that fixed it.  See
the patch in comment#4.

By backporting that change to 4.1, the testcase passes there on LP64 targets
also.  The "dedeprecated conversion" warning was never an issue in 4.1.

Lastly the execution failure remains on mainline, but that bug is a separate
issue and is already noted in PR32052.

Since the execution failure is covered elsewhere, and the other problems are
fixed, I'm closing this one.


-- 

ghazi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.3.0                       |
      Known to work|                            |4.1.3 4.2.4
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-02-11  4:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-21  0:16 [Bug objc++/27232] New: encode-3.mm fails with "deprecated conversion" warning janis at gcc dot gnu dot org
2006-04-21 23:39 ` [Bug objc++/27232] " pinskia at gcc dot gnu dot org
2007-11-22 14:09 ` danglin at gcc dot gnu dot org
2008-02-08  1:41 ` ghazi at gcc dot gnu dot org
2008-02-08  5:35 ` ghazi at gcc dot gnu dot org
2008-02-10  5:44 ` ghazi at gcc dot gnu dot org
2008-02-11  4:41 ` ghazi at gcc dot gnu dot org
2008-02-11  4:56 ` ghazi 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).