public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH.
@ 2004-02-10  9:50 rajeshs1 at kpitcummins dot com
  2004-02-10 11:32 ` [Bug target/14093] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: rajeshs1 at kpitcummins dot com @ 2004-02-10  9:50 UTC (permalink / raw)
  To: gcc-bugs

Try the code below with sh-coff toolchain

----------------bug.c ---------------------
char foo(void);
void bar()
{
        char gc = foo();
}
----------------bug.c ---------------------

Compile with

sh-coff-gcc -m2 -mhitachi bug.c

It generates following error:

bug.c: In function 'bar':
bug.c:4: internal compiler error: in emit_move_insn, at expr.c:2776
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs/html> for instructions.

-- 
           Summary: Internal compiler error for code when using -mhitachi
                    option in SH.
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rajeshs1 at kpitcummins dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug target/14093] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
@ 2004-02-10 11:32 ` pinskia at gcc dot gnu dot org
  2004-04-08  2:01 ` wilson at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-10 11:32 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code


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


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

* [Bug target/14093] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
  2004-02-10 11:32 ` [Bug target/14093] " pinskia at gcc dot gnu dot org
@ 2004-04-08  2:01 ` wilson at gcc dot gnu dot org
  2004-04-15 12:27 ` NitinY at KPITCummins dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-04-08  2:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at gcc dot gnu dot org  2004-04-08 02:00 -------
FUNCTION_VALUE disagrees with TARGET_PROMOTE_FUNCTION_RETURN.  The first says
the result is promoted, the second says the result is not promoted.  This leads
to a emit_move_insn call with different source/dest modes which aborts.

-- 


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


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

* [Bug target/14093] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
  2004-02-10 11:32 ` [Bug target/14093] " pinskia at gcc dot gnu dot org
  2004-04-08  2:01 ` wilson at gcc dot gnu dot org
@ 2004-04-15 12:27 ` NitinY at KPITCummins dot com
  2004-04-15 12:37 ` NitinY at KPITCummins dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: NitinY at KPITCummins dot com @ 2004-04-15 12:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From NitinY at KPITCummins dot com  2004-04-15 12:08 -------
Nick has written a patch to solve above bug.

Please find attach patch on below URL.

http://gcc.gnu.org/ml/gcc/2004-04/msg00665.html

-- 


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


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

* [Bug target/14093] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
                   ` (2 preceding siblings ...)
  2004-04-15 12:27 ` NitinY at KPITCummins dot com
@ 2004-04-15 12:37 ` NitinY at KPITCummins dot com
  2004-04-15 12:40 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: NitinY at KPITCummins dot com @ 2004-04-15 12:37 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |NitinY at KPITCummins dot
                   |                            |com


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


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

* [Bug target/14093] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
                   ` (3 preceding siblings ...)
  2004-04-15 12:37 ` NitinY at KPITCummins dot com
@ 2004-04-15 12:40 ` pinskia at gcc dot gnu dot org
  2004-04-30 10:07 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-15 12:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-15 12:25 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |patch
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-15 12:25:14
               date|                            |
   Target Milestone|---                         |3.4.1


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


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

* [Bug target/14093] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
                   ` (4 preceding siblings ...)
  2004-04-15 12:40 ` pinskia at gcc dot gnu dot org
@ 2004-04-30 10:07 ` cvs-commit at gcc dot gnu dot org
  2004-05-29 22:49 ` [Bug target/14093] [3.4 only] " mmitchel at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-30 10:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-04-30 05:59 -------
Subject: Bug 14093

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	wilson@gcc.gnu.org	2004-04-30 05:59:07

Modified files:
	gcc            : ChangeLog 
	gcc/config/sh  : sh-protos.h sh.c sh.h 

Log message:
	Patch from Nick Clifton.
	Bug 14093
	* config/sh/sh-protos.h (sh_promote_prototypes): Declare.
	* config/sh/sh.c (sh_promote_prototypes): Remove declaration.
	Delete static from definition.
	* config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.3522&r2=2.3523
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/sh-protos.h.diff?cvsroot=gcc&r1=1.53&r2=1.54
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/sh.c.diff?cvsroot=gcc&r1=1.264&r2=1.265
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/sh.h.diff?cvsroot=gcc&r1=1.238&r2=1.239



-- 


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


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

* [Bug target/14093] [3.4 only] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
                   ` (5 preceding siblings ...)
  2004-04-30 10:07 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-29 22:49 ` mmitchel at gcc dot gnu dot org
  2004-05-30  4:46 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-05-29 22:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-05-28 22:10 -------
Jim --

Was this a regression?  If so, would you please also apply the patch to GCC 3.4.1?

Thanks,

-- Mark

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wilson at specifixinc dot
                   |                            |com


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


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

* [Bug target/14093] [3.4 only] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
                   ` (6 preceding siblings ...)
  2004-05-29 22:49 ` [Bug target/14093] [3.4 only] " mmitchel at gcc dot gnu dot org
@ 2004-05-30  4:46 ` cvs-commit at gcc dot gnu dot org
  2004-05-30  4:51 ` wilson at specifixinc dot com
  2004-05-30  4:55 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-30  4:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-05-28 23:06 -------
Subject: Bug 14093

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	wilson@gcc.gnu.org	2004-05-28 23:06:11

Modified files:
	gcc            : ChangeLog 
	gcc/config/sh  : sh-protos.h sh.c sh.h 

Log message:
	Patch from Nick Clifton.
	Bug 14093
	* config/sh/sh-protos.h (sh_promote_prototypes): Declare.
	* config/sh/sh.c (sh_promote_prototypes): Remove declaration.
	Delete static from definition.
	* config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.

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.453&r2=2.2326.2.454
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/sh-protos.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.53.4.1&r2=1.53.4.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/sh.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.247.2.6&r2=1.247.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/sh/sh.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.230.4.2&r2=1.230.4.3



-- 


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


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

* [Bug target/14093] [3.4 only] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
                   ` (7 preceding siblings ...)
  2004-05-30  4:46 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-30  4:51 ` wilson at specifixinc dot com
  2004-05-30  4:55 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: wilson at specifixinc dot com @ 2004-05-30  4:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From wilson at specifixinc dot com  2004-05-28 23:08 -------
Subject: Re:  [3.4 only] Internal compiler error for code
	when using -mhitachi option in SH.

On Fri, 2004-05-28 at 15:10, mmitchel at gcc dot gnu dot org wrote:
> Was this a regression?  If so, would you please also apply the patch to GCC 3.4.1?

3.4 core dumps on the testcase, gcc-3.3 does not.  I added the patch to
the gcc-3.4 branch.


-- 


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


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

* [Bug target/14093] [3.4 only] Internal compiler error for code when using -mhitachi option in SH.
  2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
                   ` (8 preceding siblings ...)
  2004-05-30  4:51 ` wilson at specifixinc dot com
@ 2004-05-30  4:55 ` pinskia at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-30  4:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-05-28 23:27 -------
Fixed then.

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


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


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

end of thread, other threads:[~2004-05-28 23:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-10  9:50 [Bug target/14093] New: Internal compiler error for code when using -mhitachi option in SH rajeshs1 at kpitcummins dot com
2004-02-10 11:32 ` [Bug target/14093] " pinskia at gcc dot gnu dot org
2004-04-08  2:01 ` wilson at gcc dot gnu dot org
2004-04-15 12:27 ` NitinY at KPITCummins dot com
2004-04-15 12:37 ` NitinY at KPITCummins dot com
2004-04-15 12:40 ` pinskia at gcc dot gnu dot org
2004-04-30 10:07 ` cvs-commit at gcc dot gnu dot org
2004-05-29 22:49 ` [Bug target/14093] [3.4 only] " mmitchel at gcc dot gnu dot org
2004-05-30  4:46 ` cvs-commit at gcc dot gnu dot org
2004-05-30  4:51 ` wilson at specifixinc dot com
2004-05-30  4:55 ` 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).