public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/19752] New: error: unrecognizable insn
@ 2005-02-02  9:04 jorgen dot moth at uni-c dot dk
  2005-02-02 14:07 ` [Bug middle-end/19752] " jorgen dot moth at uni-c dot dk
  2005-02-02 14:33 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: jorgen dot moth at uni-c dot dk @ 2005-02-02  9:04 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1833 bytes --]

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 > 100000000)
         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 [ <result> ])) -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


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

* [Bug middle-end/19752] error: unrecognizable insn
  2005-02-02  9:04 [Bug middle-end/19752] New: error: unrecognizable insn jorgen dot moth at uni-c dot dk
@ 2005-02-02 14:07 ` jorgen dot moth at uni-c dot dk
  2005-02-02 14:33 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: jorgen dot moth at uni-c dot dk @ 2005-02-02 14:07 UTC (permalink / raw)
  To: gcc-bugs


------- 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


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

* [Bug middle-end/19752] error: unrecognizable insn
  2005-02-02  9:04 [Bug middle-end/19752] New: error: unrecognizable insn jorgen dot moth at uni-c dot dk
  2005-02-02 14:07 ` [Bug middle-end/19752] " jorgen dot moth at uni-c dot dk
@ 2005-02-02 14:33 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-02 14:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-02 14:33 -------


*** This bug has been marked as a duplicate of 14838 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2005-02-02 14:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-02  9:04 [Bug middle-end/19752] New: error: unrecognizable insn jorgen dot moth at uni-c dot dk
2005-02-02 14:07 ` [Bug middle-end/19752] " jorgen dot moth at uni-c dot dk
2005-02-02 14:33 ` 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).