public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/26439]  New: [4.2 Regression] missing VOPs for complex assignments
@ 2006-02-23 12:13 rguenth at gcc dot gnu dot org
  2006-02-23 12:20 ` [Bug middle-end/26439] " rguenth at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-23 12:13 UTC (permalink / raw)
  To: gcc-bugs

_Complex double c;
_Complex double foo(void)
{
  _Complex double *cp = &c;
  __real c = __imag c;
  return *cp;
}

has in alias1:

foo ()
{
  complex double * cp;
  complex double D.1527;
  double D.1526;

<bb 2>:
  cp_1 = &c;
  #   VUSE <SFT.0_2>;
  D.1526_3 = IMAGPART_EXPR <c>;
  #   SFT.1_5 = V_MUST_DEF <SFT.1_4>;
  REALPART_EXPR <c> = D.1526_3;
  #   VUSE <SFT.1_5>;
  D.1527_6 = *cp_1;
  #   <retval>_8 = V_MUST_DEF <<retval>_7>;
  <retval> = D.1527_6;
  #   VUSE <<retval>_8>;
  return <retval>;

}

note how D.1527_6 = *cp_1; misses VUSE <SFT.0_2>


-- 
           Summary: [4.2 Regression] missing VOPs for complex assignments
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code, alias
          Severity: critical
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
@ 2006-02-23 12:20 ` rguenth at gcc dot gnu dot org
  2006-02-23 16:03 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-23 12:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-02-23 12:20 -------
I'm working on a fix.  find_func_aliases needs to handle complex types like
AGGREGATE_TYPE_P types.


-- 


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
  2006-02-23 12:20 ` [Bug middle-end/26439] " rguenth at gcc dot gnu dot org
@ 2006-02-23 16:03 ` rguenth at gcc dot gnu dot org
  2006-02-23 16:16 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-23 16:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-02-23 16:03 -------
Subject: Bug 26439

Author: rguenth
Date: Thu Feb 23 16:03:47 2006
New Revision: 111389

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111389
Log:
2006-02-23  Richard Guenther  <rguenther@suse.de>

        PR middle-end/26439
        * tree-ssa-structalias.c (find_func_aliases): Handle complex types
        like aggregate types.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-structalias.c


-- 


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
  2006-02-23 12:20 ` [Bug middle-end/26439] " rguenth at gcc dot gnu dot org
  2006-02-23 16:03 ` rguenth at gcc dot gnu dot org
@ 2006-02-23 16:16 ` rguenth at gcc dot gnu dot org
  2006-02-24 17:32 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-23 16:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-02-23 16:16 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-23 16:16 ` rguenth at gcc dot gnu dot org
@ 2006-02-24 17:32 ` pinskia at gcc dot gnu dot org
  2006-02-24 17:34 ` 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 @ 2006-02-24 17:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-02-24 17:32 -------
Actually I could not reproduce this with "4.2.0 20060221"?

Is it only with the patch to fix PR 26421?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |
   Target Milestone|4.2.0                       |---


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-24 17:32 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:34 ` pinskia at gcc dot gnu dot org
  2006-02-24 17:36 ` 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 @ 2006-02-24 17:34 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-24 17:34 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:36 ` pinskia at gcc dot gnu dot org
  2006-02-24 17:38 ` 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 @ 2006-02-24 17:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-02-24 17:34 -------
Actually this looks like it is x86 specific.  Please next time add the target
if you think it is x86 specific and also pelase mention this was also using the
C++ front-end.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 GCC target triplet|                            |i686-pc-linux-gnu


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-24 17:36 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:38 ` pinskia at gcc dot gnu dot org
  2006-02-24 17:47 ` pinskia at gcc dot gnu dot org
  2006-02-24 18:23 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 17:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-02-24 17:36 -------
Actually I cannot reproduce this with "4.2.0 20060218" either on x86?  What
were you doing to reproduce this?


-- 


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-02-24 17:38 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 17:47 ` pinskia at gcc dot gnu dot org
  2006-02-24 18:23 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 17:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-02-24 17:46 -------
(In reply to comment #6)
> Actually I cannot reproduce this with "4.2.0 20060218" either on x86?  What
> were you doing to reproduce this?

Or even the 20th.


-- 


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


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

* [Bug middle-end/26439] [4.2 Regression] missing VOPs for complex assignments
  2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-02-24 17:47 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 18:23 ` pinskia at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 18:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-02-24 18:22 -------
Actually never mind I see the issue now but I still say this is a latent bug
and not really my bug. 


And the patch is wrong anyways in general as most of those places really should
have been testing
something like var_can_have_subvars instead of AGGREGATE_TYPE_P anyways.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.2.0


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


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

end of thread, other threads:[~2006-02-24 18:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
2006-02-23 12:20 ` [Bug middle-end/26439] " rguenth at gcc dot gnu dot org
2006-02-23 16:03 ` rguenth at gcc dot gnu dot org
2006-02-23 16:16 ` rguenth at gcc dot gnu dot org
2006-02-24 17:32 ` pinskia at gcc dot gnu dot org
2006-02-24 17:34 ` pinskia at gcc dot gnu dot org
2006-02-24 17:36 ` pinskia at gcc dot gnu dot org
2006-02-24 17:38 ` pinskia at gcc dot gnu dot org
2006-02-24 17:47 ` pinskia at gcc dot gnu dot org
2006-02-24 18:23 ` 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).