public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17114] New: ColdFire ICE with illegal constraints
@ 2004-08-20 5:12 peter at the-baradas dot com
2004-08-21 5:16 ` [Bug target/17114] " wilson at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: peter at the-baradas dot com @ 2004-08-20 5:12 UTC (permalink / raw)
To: gcc-bugs
Compiling the testcase with:
m68k-elf-gcc -g -O2 -m528x -Wall -c -o ./bug4.o ./bug4.c
causes:
./bug4.c:231: error: insn does not satisfy its constraints:
(insn 154 471 155 6 ./bug4.c:203 (set (mem/s:HI (plus:SI (reg:SI 9 %a1)
(const_int 20 [0x14])) [4 <variable>.FAT_cnt+0 S2 A16])
(mem:HI (plus:SI (reg/f:SI 14 %a6)
(reg:SI 9 %a1)) [45 file_cnt+0 S4 A16])) 29 {*m68k.md:790} (nil)
(nil))
./bug4.c:231: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:378
Testcase is:
int printf_s( const char *,...);
typedef struct{
unsigned short record_type;
unsigned short record_lenght;
unsigned long record_owner;
unsigned char Name_Manuf[40];
unsigned long Name_Manuf123;
unsigned long Popis1;
unsigned char Popis2[10];
unsigned char Picture1[10];
unsigned char Picture2[10];
} tmodule_Manuf;
typedef struct{
unsigned short record_type;
unsigned short record_lenght;
unsigned long record_owner;
unsigned char Name_Car[40];
unsigned long Name_Car123;
unsigned long Popis1;
unsigned char Popis2[10];
unsigned char Picture1[10];
unsigned char Picture2[10];
unsigned char Cables[40];
unsigned char Years[20];
} tmodule_CarType;
typedef struct{
unsigned short record_type;
unsigned short record_lenght;
unsigned long record_owner;
unsigned char Name_ECU[40];
unsigned long Name_ECU123;
unsigned short Type_ECU;
unsigned short Mserial;
unsigned long Popis1;
unsigned char Popis2[10];
unsigned char Picture1[10];
unsigned char Picture2[10];
unsigned char Extend1[10];
unsigned char Extend2[10];
unsigned char VIVID1[10];
unsigned char VIVID2[10];
} tmodule_ECUType;
typedef struct{
unsigned short record_type;
unsigned short record_lenght;
unsigned short Mserial;
unsigned char name[14];
unsigned short FAT_cnt;
unsigned short Res0;
} tMserial_rec;
typedef struct {
char Magic[4];
unsigned int Mserial;
char MFullName[100];
void (*start_module)(unsigned int debug);
tmodule_Manuf *Array_Manuf;
tmodule_CarType *Array_Cars;
tmodule_ECUType *Array_ECUs;
unsigned long res0;
unsigned long res1;
char Mname[10];
int M_ID;
char Msubname[10];
char Mversion[10];
} tmodule_desc;
typedef tmodule_desc *pmodule_desc;
typedef struct {
unsigned short magic1;
unsigned short magic2;
pmodule_desc pm_desc;
}tmodule_header;
typedef tmodule_header *pmodule_header;
typedef struct tfunc4main_table {
int (*get_hw_info)(char *buf);
int (*ide_read_sector)(char *buf, unsigned long start, unsigned long num);
int (*ide_write_sector)(char *buf, unsigned long start, unsigned long num);
int (*get_ip_addr)(char *ip);
int (*set_ip_addr)(char *ip);
int (*get_serial_num)(char *sn);
int (*check_secure)(void);
int (*loader_start)(void);
void (*reset_system)(void);
int (*get_run_first)(int erase);
} tfunc4main_table;
typedef tfunc4main_table *tpfunc4main_table;
typedef struct tsimple_FAT {
unsigned char name[14];
unsigned long size;
unsigned long start_sec;
unsigned long end_sec;
unsigned short attrib;
unsigned long crc;
} tsimple_FAT;
typedef tsimple_FAT *tpsimple_FAT;
typedef struct tCF_config_sector {
unsigned long magic;
unsigned long crc;
unsigned short version;
unsigned short CF_sector_size;
unsigned long CF_num_bytes;
unsigned long CF_num_secs;
unsigned short FAT1_version;
unsigned long FAT1_start;
unsigned long FAT1_size;
unsigned long data1_start;
unsigned long data1_size;
unsigned short FAT2_version;
unsigned long FAT2_start;
unsigned long FAT2_size;
unsigned long data2_start;
unsigned long data2_size;
unsigned char CF_serial[20];
unsigned char TS02_serial[20];
unsigned char eth_mac[6];
unsigned char res1[1];
} tCF_config_sector;
int copy2(unsigned char *src,unsigned char *dst,unsigned int num);
int Generate_menu(char *menu_buffer)
{
pmodule_header hlav;
pmodule_desc pom_desc;
unsigned int i,j,cnt;
int r;
unsigned long Menu_real_size;
unsigned char buff_sect[512], *uch,*ucc;
unsigned char *buff_module;
tCF_config_sector boot;
unsigned int file_cnt;
tsimple_FAT jeden_FAT;
unsigned int change_flag;
tMserial_rec Pole_Mser[100], *pPole_Mser_tmp;
unsigned int Pole_Mser_cnt;
tmodule_Manuf Pole_Manuf[100],Pole_Manuf_tmp,*pPole_Manuf_tmp;
unsigned int Pole_Manuf_cnt;
tmodule_CarType Pole_CarType[1000], Pole_CarType_tmp, *pPole_CarType_tmp;
unsigned int Pole_CarType_cnt;
tmodule_ECUType Pole_ECUType[10000], Pole_ECUType_tmp, *pPole_ECUType_tmp;
unsigned int Pole_ECUType_cnt;
buff_module = ((char *)0x20080000L);
r = ((tpfunc4main_table)0x448)->ide_read_sector( buff_sect, 0, 1);
if(r < 0)return(-1);
uch = (unsigned char *)&boot;
for(i=0;i<sizeof(tCF_config_sector);i++) {uch[i] = buff_sect[i]; }
if(boot.magic != 0x55aac396UL)return(-1);
printf_s("\n Boot loaded;");
file_cnt = 0;
Pole_Mser_cnt = 0;
Pole_Manuf_cnt = 0;
Pole_CarType_cnt = 0;
Pole_ECUType_cnt = 0;
do{
if((hlav->magic1 == 0x25A4) && (hlav->magic2 == 0x4A52))
{
pom_desc = (pmodule_desc)( (unsigned long)hlav + ( ((unsigned
long)hlav->pm_desc) & ~0x80000000UL) );
printf_s("\n\r Module desc base=%lx, Name=%s,
ADR=%lx;",pom_desc,pom_desc->MFullName, pom_desc->start_module);
Pole_Mser[Pole_Mser_cnt].record_type = 4;
Pole_Mser[Pole_Mser_cnt].record_lenght = sizeof(tMserial_rec);
Pole_Mser[Pole_Mser_cnt].Mserial = pom_desc->Mserial;
Pole_Mser[Pole_Mser_cnt].FAT_cnt = file_cnt;
copy2(jeden_FAT.name,Pole_Mser[Pole_Mser_cnt].name,14);
Pole_Mser_cnt++;
Pole_Mser[Pole_Mser_cnt].record_type = 0;
i = 0;
do{
Pole_Manuf[Pole_Manuf_cnt] = pom_desc->Array_Manuf[i];
printf_s("\n Manufacturer %s;", Pole_Manuf[Pole_Manuf_cnt].Name_Manuf);
Pole_Manuf_cnt++;
Pole_Manuf[Pole_Manuf_cnt].record_type = 0;
}while(pom_desc->Array_Manuf[++i].record_type != 0);
}
file_cnt++;
}while(1);
return 0;
}
--
Summary: ColdFire ICE with illegal constraints
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peter at the-baradas dot com
CC: gcc-bugs at gcc dot gnu dot org,peter at the-baradas dot
com
GCC target triplet: m68k-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17114] ColdFire ICE with illegal constraints
2004-08-20 5:12 [Bug target/17114] New: ColdFire ICE with illegal constraints peter at the-baradas dot com
@ 2004-08-21 5:16 ` wilson at gcc dot gnu dot org
2004-09-22 12:52 ` peter at the-baradas dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-08-21 5:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2004-08-21 05:16 -------
I see you included the testcase in the text instead of using an attachment.
This is annoying, as now I have to un-html-ify it. Always include a nontrivial
testcase as an attachment.
See
http://gcc.gnu.org/ml/gcc/2004-08/msg01037.html
for a detailed analysis, including a pointer on how to fix it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-08-21 05:16:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17114] ColdFire ICE with illegal constraints
2004-08-20 5:12 [Bug target/17114] New: ColdFire ICE with illegal constraints peter at the-baradas dot com
2004-08-21 5:16 ` [Bug target/17114] " wilson at gcc dot gnu dot org
@ 2004-09-22 12:52 ` peter at the-baradas dot com
2004-09-27 4:31 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: peter at the-baradas dot com @ 2004-09-22 12:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peter at the-baradas dot com 2004-09-22 12:52 -------
(In reply to comment #1)
> I see you included the testcase in the text instead of using an attachment.
> This is annoying, as now I have to un-html-ify it. Always include a nontrivial
> testcase as an attachment.
>
> See
> http://gcc.gnu.org/ml/gcc/2004-08/msg01037.html
> for a detailed analysis, including a pointer on how to fix it.
See
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg00426.html
for a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17114] ColdFire ICE with illegal constraints
2004-08-20 5:12 [Bug target/17114] New: ColdFire ICE with illegal constraints peter at the-baradas dot com
2004-08-21 5:16 ` [Bug target/17114] " wilson at gcc dot gnu dot org
2004-09-22 12:52 ` peter at the-baradas dot com
@ 2004-09-27 4:31 ` pinskia at gcc dot gnu dot org
2004-12-28 1:43 ` pinskia at gcc dot gnu dot org
2005-07-21 0:37 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-27 4:31 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Keywords| |ice-on-valid-code, patch
Last reconfirmed|2004-08-21 05:16:21 |2004-09-27 04:31:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17114] ColdFire ICE with illegal constraints
2004-08-20 5:12 [Bug target/17114] New: ColdFire ICE with illegal constraints peter at the-baradas dot com
` (2 preceding siblings ...)
2004-09-27 4:31 ` pinskia at gcc dot gnu dot org
@ 2004-12-28 1:43 ` pinskia at gcc dot gnu dot org
2005-07-21 0:37 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-28 1:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-28 01:43 -------
Hmm, this works on the mainline from 20041022.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17114] ColdFire ICE with illegal constraints
2004-08-20 5:12 [Bug target/17114] New: ColdFire ICE with illegal constraints peter at the-baradas dot com
` (3 preceding siblings ...)
2004-12-28 1:43 ` pinskia at gcc dot gnu dot org
@ 2005-07-21 0:37 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-21 0:37 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
URL|http://gcc.gnu.org/ml/gcc- |
|patches/2004- |
|09/msg00426.html |
Keywords|patch |
Last reconfirmed|2004-09-27 04:31:10 |2005-07-21 00:35:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17114] ColdFire ICE with illegal constraints
[not found] <bug-17114-8670@http.gcc.gnu.org/bugzilla/>
2006-05-08 16:14 ` kazu at gcc dot gnu dot org
@ 2007-03-06 8:55 ` rsandifo at gcc dot gnu dot org
1 sibling, 0 replies; 8+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2007-03-06 8:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rsandifo at gcc dot gnu dot org 2007-03-06 08:54 -------
Subject: Bug 17114
Author: rsandifo
Date: Tue Mar 6 08:54:31 2007
New Revision: 122604
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122604
Log:
gcc/
PR target/23482
PR target/17114
* config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
(m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
(m68k_matches_q_p, m68k_matches_u_p): Likewise.
* config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
and m68k_matches_u_p.
(PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
(INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
(GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
(LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
(GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
(REG_STRICT_P): New macro.
(LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
PCREL_GENERAL_OPERAND_OK.
(REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
m68k_legitimate_base_reg_p.
(REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
(GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
(PIC_CASE_VECTOR_ADDRESS): Update comment.
* config/m68k/m68k.c (m68k_address): New structure.
(m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
(m68k_decompose_index, m68k_legitimate_constant_address_p)
(m68k_jump_table_ref_p, m68k_decompose_address)
(m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
(m68k_matches_u_p): New functions.
(print_operand_address): Rewrite to use m68k_decompose_index.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/m68k/m68k-protos.h
trunk/gcc/config/m68k/m68k.c
trunk/gcc/config/m68k/m68k.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17114] ColdFire ICE with illegal constraints
[not found] <bug-17114-8670@http.gcc.gnu.org/bugzilla/>
@ 2006-05-08 16:14 ` kazu at gcc dot gnu dot org
2007-03-06 8:55 ` rsandifo at gcc dot gnu dot org
1 sibling, 0 replies; 8+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-05-08 16:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from kazu at gcc dot gnu dot org 2006-05-08 16:14 -------
Not reproducible with mainline.
--
kazu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kazu at gcc dot gnu dot org
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17114
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-03-06 8:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-20 5:12 [Bug target/17114] New: ColdFire ICE with illegal constraints peter at the-baradas dot com
2004-08-21 5:16 ` [Bug target/17114] " wilson at gcc dot gnu dot org
2004-09-22 12:52 ` peter at the-baradas dot com
2004-09-27 4:31 ` pinskia at gcc dot gnu dot org
2004-12-28 1:43 ` pinskia at gcc dot gnu dot org
2005-07-21 0:37 ` pinskia at gcc dot gnu dot org
[not found] <bug-17114-8670@http.gcc.gnu.org/bugzilla/>
2006-05-08 16:14 ` kazu at gcc dot gnu dot org
2007-03-06 8:55 ` rsandifo 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).