c/1500: bad assembly code with use of inline functions (added forgotten ZIP file)

vincent_radivoniuk@mail.schneider.fr vincent_radivoniuk@mail.schneider.fr
Fri Dec 22 06:56:00 GMT 2000


>Number:         1500
>Category:       c
>Synopsis:       bad assembly code with use of inline functions (added forgotten ZIP file)
>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:
----gnatsweb-attachment----
Content-Type: application/x-zip-compressed; name="bug.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.zip"

UEsDBBQAAgAIAG56limGLSEvPgEAAA8DAAAFAAAAYnVnLnO1Ud9PwjAQfu6S/Q8nvMLsRjKJexFR
hIQMEo2vpGx1qxntcu348d/bbQYT0EhM7Mvd933X9ru7iDyNxzBRCCbnMBWGJbmA6fB6QKnrROT+
cCRHG44iYTA3KTCZwviQyUrDc1WWCk1djLzgTHOY9H0Lob8IXMd1iJcP7Wt5nb2JgpPOusq8pFNj
zRMjlATP8L2pCVaITIJfp1mh1qyA1cPs1Q9X8eJlFs9n8aPrnDK3trqsdO4VhGNowUZtm/ym1+AI
uqPl0vKp2O61twP0rUAbIV6sWq1U5fE+Gv2DFxRZbn228bd/G7wjXds8pT30jxXdgH6e1gd510ju
zhu90NQOlcysqSZeaurLAlJCSASDANbCaNCqwoSDKjnWWxYSGPhhqyHPhDYc4eqsu+C7OQd/nXM7
ipOF/++2uUxd5wNQSwMEFAACAAgAIXyWKTqLvbvQAAAA4gEAAAUAAABidWcuabWQvQrCMBCA5xb6
DseJkEgpbQUHxU2HgtRFXEPVUAMxhdg/Ed/dpK0KTi4e4SDJ3XcfN4II8FDlwRE913OFKmGV7KMZ
S7e7JN0k6ZrIQuXQTmPfft6iGYW75zr2Umey4gvbByac7HqBupBZKSQHgidRt9eggXHs83GIc1xq
JF0LnWOIxCCpj+bNMuligGheVlq90Q8zynMZE0oKxRmDj+HPepb7X8V+cVrk55LUhTj1DuYMpd8r
7aRpFJqYxDb7U5vthIfzwjXaFH1w37RfUU9QSwMEFAACAAgAy3CWKbDHie/JAAAA1QEAAAUAAABi
dWcuY7WQTwvCIBTAzxP8DiIMNCS2BTtsdKvDINYlusogWYI5cJsV0XdP15/BTrv0kAfqe7/340Eg
dYc2xTFOebk/FOWuKLdENbpGt1XC/Oc9Til6QBD4i61UL3IIIEAugqq9INuoqpNKIIJP0t7a5RWF
CRNhhDO8NpgMLTTDESYOSRl2b55J8w/EiK43+od+ulEQcC61klpwjkbD2Xqe+19FOCzOyPrcEdvI
09vBnU/pdKWDNI0jF4vEZ7by2U94Bl/c1biiETelzUW9AFBLAQIUABQAAgAIAG56limGLSEvPgEA
AA8DAAAFAAAAAAAAAAEAIAC2gQAAAABidWcuc1BLAQIUABQAAgAIACF8lik6i7270AAAAOIBAAAF
AAAAAAAAAAEAIAC2gWEBAABidWcuaVBLAQIUABQAAgAIAMtwlimwx4nvyQAAANUBAAAFAAAAAAAA
AAEAIAC2gVQCAABidWcuY1BLBQYAAAAAAwADAJkAAABAAwAAAAA=


More information about the Gcc-bugs mailing list