c/1499: bad assembly code with use of inline functions
vincent_radivoniuk@mail.schneider.fr
vincent_radivoniuk@mail.schneider.fr
Fri Dec 22 06:56:00 GMT 2000
>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:
More information about the Gcc-prs
mailing list