This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/1499: bad assembly code with use of inline functions
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/1499: bad assembly code with use of inline functions
- From: vincent_radivoniuk at mail dot schneider dot fr
- Date: 22 Dec 2000 14:47:28 -0000
- Cc: vincent_radivoniuk at mail dot schneider dot fr, orvoen at free dot fr
- Reply-To: vincent_radivoniuk at mail dot schneider dot fr
>Number: 1499
>Category: c
>Synopsis: bad assembly code with use of inline functions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri Dec 22 06:56:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Vincent RADIVONIUK
>Release: 2.95.2 19991024
>Organization:
>Environment:
gcc is used as a cross-compiler this way :
host : intel pentium III under windows 98
target : hitachi h8/300
>Description:
using the command xgcc -c -mh -O2 -save-temps bug.c
i receive this output
bug.s: Assembler messages :
bug.s:34: Warning: operand #0xbebc200 out of range.
The assembler code is wrong if the function is inline and right if not (see assembly file).
>How-To-Repeat:
built your cross compiler whith options
--host=i386-cygwin32 --target=h8300hms
use the command xgcc -c -mh -O2 -save-temps bug.c
on the C source
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: