public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/13049] New: Does not warn on obious aliasing problem
@ 2003-11-14 10:00 pinskia at gcc dot gnu dot org
  2003-11-15  2:50 ` [Bug optimization/13049] Does not warn on obvious " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-14 10:00 UTC (permalink / raw)
  To: gcc-bugs

The following code should warn as there is an aliasing problem in the code (derived from gcc in 
SPEC, yes that old code):
struct tt
{
        struct
        {
          short i;
          short j;
        }t;
};
void t(struct tt *i)
{
  ((int*)i)[0] = 0;
  i->t.j = 2;
}

-- 
           Summary: Does not warn on obious aliasing problem
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
@ 2003-11-15  2:50 ` pinskia at gcc dot gnu dot org
  2003-11-21 23:30 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-15  2:50 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Does not warn on obious     |Does not warn on obvious
                   |aliasing problem            |aliasing problem


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


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

* [Bug optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
  2003-11-15  2:50 ` [Bug optimization/13049] Does not warn on obvious " pinskia at gcc dot gnu dot org
@ 2003-11-21 23:30 ` pinskia at gcc dot gnu dot org
  2003-11-23 23:24 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-21 23:30 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement


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


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

* [Bug optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
  2003-11-15  2:50 ` [Bug optimization/13049] Does not warn on obvious " pinskia at gcc dot gnu dot org
  2003-11-21 23:30 ` pinskia at gcc dot gnu dot org
@ 2003-11-23 23:24 ` pinskia at gcc dot gnu dot org
  2003-11-28 20:34 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-23 23:24 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3


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


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

* [Bug optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-11-23 23:24 ` pinskia at gcc dot gnu dot org
@ 2003-11-28 20:34 ` pinskia at gcc dot gnu dot org
  2004-02-27  5:58 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-28 20:34 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-11-28 20:34:22
               date|                            |


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


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

* [Bug optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2003-11-28 20:34 ` pinskia at gcc dot gnu dot org
@ 2004-02-27  5:58 ` pinskia at gcc dot gnu dot org
  2004-04-05  0:53 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-27  5:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-27 05:58 -------
Mine as the reason why this does not happen is because &a->b is lowered so that there 
is only a cast.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-02-27  5:58 ` pinskia at gcc dot gnu dot org
@ 2004-04-05  0:53 ` pinskia at gcc dot gnu dot org
  2004-06-20 20:47 ` [Bug rtl-optimization/13049] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-05  0:53 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-05 00:53 -------
Actually I was wrong, the reason why it does not warn is because we do not take the 
address so the warning is not going to be emitted at all.  I am not working on this any 
more.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|pinskia at gcc dot gnu dot  |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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


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

* [Bug rtl-optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2004-04-05  0:53 ` pinskia at gcc dot gnu dot org
@ 2004-06-20 20:47 ` pinskia at gcc dot gnu dot org
  2005-02-27  5:22 ` pinskia at gcc dot gnu dot org
  2005-09-26 15:39 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-20 20:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-20 20:47 -------
But the reason why do not even think about warning has to do with the lowering part though.

-- 


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


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

* [Bug rtl-optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2004-06-20 20:47 ` [Bug rtl-optimization/13049] " pinskia at gcc dot gnu dot org
@ 2005-02-27  5:22 ` pinskia at gcc dot gnu dot org
  2005-09-26 15:39 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-27  5:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-26 14:26 -------
*** Bug 20189 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dirk at cle-mens dot de


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


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

* [Bug rtl-optimization/13049] Does not warn on obvious aliasing problem
  2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-02-27  5:22 ` pinskia at gcc dot gnu dot org
@ 2005-09-26 15:39 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-26 15:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-26 15:38 -------
Even -Wstrict-aliasing=2 does not warn.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-05-27 00:40:18         |2005-09-26 15:38:54
               date|                            |


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


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

end of thread, other threads:[~2005-09-26 15:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-14 10:00 [Bug optimization/13049] New: Does not warn on obious aliasing problem pinskia at gcc dot gnu dot org
2003-11-15  2:50 ` [Bug optimization/13049] Does not warn on obvious " pinskia at gcc dot gnu dot org
2003-11-21 23:30 ` pinskia at gcc dot gnu dot org
2003-11-23 23:24 ` pinskia at gcc dot gnu dot org
2003-11-28 20:34 ` pinskia at gcc dot gnu dot org
2004-02-27  5:58 ` pinskia at gcc dot gnu dot org
2004-04-05  0:53 ` pinskia at gcc dot gnu dot org
2004-06-20 20:47 ` [Bug rtl-optimization/13049] " pinskia at gcc dot gnu dot org
2005-02-27  5:22 ` pinskia at gcc dot gnu dot org
2005-09-26 15:39 ` 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).