public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/16430] New: [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes
@ 2004-07-08  7:05 ebotcazou at gcc dot gnu dot org
  2004-07-08  7:06 ` [Bug target/16430] " ebotcazou at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-07-08  7:05 UTC (permalink / raw)
  To: gcc-bugs

For the Ada testcase:

procedure P is

  type my_array is array (1..6) of Integer;
  A : my_array;

  function Q return my_array is
  begin
    return A;
  end;

begin
  A := Q;
end P;

I get with gcc -m64 on sparc-sun-solaris2.8:

+===========================GNAT BUG DETECTED==============================+
| 3.4.1 (sparc-sun-solaris2.8) in hard_function_value, at explow.c:1565    |
| Error detected at p.adb:6:3                                              |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+


The problem comes from the removing of OImode after GCC 3.2.x.

-- 
           Summary: [3.4/3.5 regression] ICE when returning non-C aggregates
                    larger than 16 bytes
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ebotcazou at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: sparc64-*-*
  GCC host triplet: sparc64-*-*
GCC target triplet: sparc64-*-*


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


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

* [Bug target/16430] [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes
  2004-07-08  7:05 [Bug target/16430] New: [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes ebotcazou at gcc dot gnu dot org
@ 2004-07-08  7:06 ` ebotcazou at gcc dot gnu dot org
  2004-07-08 14:33 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-07-08  7:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-07-08 07:06 -------
Testing a fix.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ebotcazou at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-07-08 07:06:29
               date|                            |
   Target Milestone|---                         |3.4.2


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


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

* [Bug target/16430] [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes
  2004-07-08  7:05 [Bug target/16430] New: [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes ebotcazou at gcc dot gnu dot org
  2004-07-08  7:06 ` [Bug target/16430] " ebotcazou at gcc dot gnu dot org
@ 2004-07-08 14:33 ` cvs-commit at gcc dot gnu dot org
  2004-07-08 14:36 ` cvs-commit at gcc dot gnu dot org
  2004-07-08 14:38 ` ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-08 14:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-08 14:33 -------
Subject: Bug 16430

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	ebotcazou@gcc.gnu.org	2004-07-08 14:33:21

Modified files:
	gcc            : ChangeLog 
	gcc/config/sparc: sparc.c 

Log message:
	PR target/16430
	* config/sparc/sparc.c (function_value): In 64-bit mode,
	return the aggregates larger than 16 bytes like unions.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4377&r2=2.4378
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&r1=1.313&r2=1.314



-- 


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


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

* [Bug target/16430] [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes
  2004-07-08  7:05 [Bug target/16430] New: [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes ebotcazou at gcc dot gnu dot org
  2004-07-08  7:06 ` [Bug target/16430] " ebotcazou at gcc dot gnu dot org
  2004-07-08 14:33 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-08 14:36 ` cvs-commit at gcc dot gnu dot org
  2004-07-08 14:38 ` ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-08 14:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-08 14:36 -------
Subject: Bug 16430

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	ebotcazou@gcc.gnu.org	2004-07-08 14:36:52

Modified files:
	gcc            : ChangeLog 
	gcc/config/sparc: sparc.c 

Log message:
	PR target/16430
	* config/sparc/sparc.c (function_value): In 64-bit mode,
	return the aggregates larger than 16 bytes like unions.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.541&r2=2.2326.2.542
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sparc/sparc.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.271.4.16&r2=1.271.4.17



-- 


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


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

* [Bug target/16430] [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes
  2004-07-08  7:05 [Bug target/16430] New: [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes ebotcazou at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-07-08 14:36 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-08 14:38 ` ebotcazou at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2004-07-08 14:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ebotcazou at gcc dot gnu dot org  2004-07-08 14:38 -------
See http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00782.html


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-07-08 14:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-08  7:05 [Bug target/16430] New: [3.4/3.5 regression] ICE when returning non-C aggregates larger than 16 bytes ebotcazou at gcc dot gnu dot org
2004-07-08  7:06 ` [Bug target/16430] " ebotcazou at gcc dot gnu dot org
2004-07-08 14:33 ` cvs-commit at gcc dot gnu dot org
2004-07-08 14:36 ` cvs-commit at gcc dot gnu dot org
2004-07-08 14:38 ` ebotcazou 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).