[Bug middle-end/19752] New: error: unrecognizable insn

2005-02-02 Thread jorgen dot moth at uni-c dot dk
When installing TeX-live 2004 on a HP-box (hpux11.11) with gcc –version:

gcc -v
Reading specs from /usr/unic/libexec/gcc/3.4.2/lib/gcc/hppa1.1-hp-
hpux11.11/3.4.2/specs
Configured with: ../gcc-3.4.2/configure --prefix=/usr/unic/share/gcc/3.4.2 --
exec-prefix=/usr/unic/libexec/gcc/3.4.2 --with-gnu-as --with-
as=/usr/local/bin/as
Thread model: single
gcc version 3.4.2

the following excerpt of the dvidvi.c program

integer myatol(s)
char **s ;
{
   register char *p ;
   register integer result ;

   result = 0 ;
   p = *s ;
   while ('0' <= *p && *p <= '9') {
  if (result > 1)
 error("! arithmetic overflow in parameter") ;
  result = 10 * result + *p++ - '0' ;
   }
   if (p == *s)
  usage() ;
   else {
  *s = p ;
  return(result) ;
   }
}

Resulted in an internal compiler error. The compiler call was:

gcc -DNO_DEBUG -I. -I. -I.. -I./.. -DUNIX  -DNeedFunctionPrototypes -
DHAVE_CONFIG_H -I../kpathsea -I./../kpathsea  -g -O2  -c dvidvi.c -o dvidvi.o

…

dvidvi.c: In function `main':
dvidvi.c:1265: warning: return type of 'main' is not `int'
dvidvi.c: In function `myatol':
dvidvi.c:447: error: unrecognizable insn:
(insn 76 73 161 dvidvi.c:447 (clobber (reg/i:SI 28 %r28 [  ])) -1 
(insn_list:REG_DEP_OUTPUT 56 (nil))
(nil))
dvidvi.c:447: internal compiler error: in insn_default_length, at insn-
attrtab.c:825
Please submit a full bug report,

-- 
   Summary: error: unrecognizable insn
   Product: gcc
   Version: 3.4.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: middle-end
    AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jorgen dot moth at uni-c dot dk
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug middle-end/19752] error: unrecognizable insn

2005-02-02 Thread jorgen dot moth at uni-c dot dk

--- Additional Comments From jorgen dot moth at uni-c dot dk  2005-02-02 
14:07 ---
To avoid the compiler error it helps to move the last "return(result" outside 
the curly brackets of the last else statement (literally removing the pair of 
curly brackets of the else statement). This change of code introduces no 
semantic change as "usage()" actually error-exits after printing some how-to 
information for using dvidvi. 

-- 


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


[Bug c/30497] New: compiling binutils 2.17 on aix fails with gcc 4.1.1

2007-01-18 Thread jorgen dot moth at uni-c dot dk
-bash-3.00$ gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: /data1/JM/gcc-4.1.1/configure
--prefix=/usr/unic/libexec/gcc/4.1.1 --enable-languages=c,c++ --disable-nls
Thread model: aix
gcc version 4.1.1
-bash-3.00$ gcc -save-temps -DHAVE_CONFIG_H -I. -I.././binutils -I.
-D_GNU_SOURCE -I. -I.././binutils -I../bfd -I.././binutils/../bfd \
> -I.././binutils/../include -I.././binutils/../intl -I../intl 
> -DLOCALEDIR="\"/usr/unic/libexec/binutils/2.17/share/locale\"" \
> -Dbin_dummy_emulation=bin_aix5_emulation   -W -Wall -Wstrict-prototypes 
> -Wmissing-prototypes -Werror -g -O2  -c readelf.c
readelf.c: In function 'get_dynamic_data':
readelf.c:6882: error: unrecognizable insn:
(insn 190 186 191 9 readelf.c:6877 (parallel [
(set (mem:SI (plus:SI (reg:SI 29 29 [orig:123 ivtmp.1079 ] [123])
(const_int 4294967288 [0xfff8])) [0 S4 A8])
(reg:SI 3 3))
(set (reg:SI 29 29 [orig:123 ivtmp.1079 ] [123])
(plus:SI (reg:SI 29 29 [orig:123 ivtmp.1079 ] [123])
(const_int 4294967288 [0xfff8])))
]) -1 (nil)
(nil))
readelf.c:6882: internal compiler error: in extract_insn, at recog.c:2084
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.


-- 
   Summary: compiling binutils 2.17 on aix fails with gcc 4.1.1
   Product: gcc
   Version: 4.1.1
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jorgen dot moth at uni-c dot dk


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



[Bug c/30497] compiling binutils 2.17 on aix fails with gcc 4.1.1

2007-01-18 Thread jorgen dot moth at uni-c dot dk


--- Comment #1 from jorgen dot moth at uni-c dot dk  2007-01-18 11:54 
---
Created an attachment (id=12918)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12918&action=view)
readelf.i


-- 


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