This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/6744: Generates ASM containing reference to pseudo register z



>Number:         6744
>Category:       optimization
>Synopsis:       Generates ASM containing reference to pseudo register z
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 20 09:46:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     imajeff Smith
>Release:        gcc version 2.95.3 20010315 (release)+m68hc1x-20010922
>Organization:
>Environment:
Red Hat Linux 6.2
>Description:
When my file is compiled by:
m6811-elf-gcc -m68hc12 -mshort -Wall -Os -c eeprom.i

It places the ASM:
==============
        ldx     #_io_ports+243
; Begin inline assembler code
#APP
        bset 0,z,#22
; End of inline assembler code
#NO_APP
==============

Because of the 'z' which should have been 'x',
my code will not even compile.

I beleive it is not generating the error without optimizations (when I removed -Os).
>How-To-Repeat:
try compiling with:
m6811-elf-gcc -m68hc12 -mshort -Wall -Os -c eeprom.i
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="eeprom.i.Z"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="eeprom.i.Z"

H52QI0DEACGiTBk4ct60cTFGhAIQCiJKjBhwYMGDCReiESHw4cSPICsSfFFnjpwXbNKIeXFmzJgW
KVe2sYEjRowWZdiYeSHDRY4aLma8SONmDJs6ZMq8mEOHjJg3b9i42CgQxAyPEiEqoJMHTpmkZkCU
cVOnzUMQe86CAGEmDJs5ZUD0AAGDhVoQdOTUiTs3xtk+IJ5G3RFRa+GJFW0QNIhQ4VSOMihWFeHC
xYvKQ4seTbo0z5wXaO7IKXPmcUfDISdjxkzUKFKlYea0aTETB5oxMWSAFk3atF/UICVbXG259WbY
smnTvJ37BZwwc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Ki93qld3rfwax2jMf8IsEmwseU4sclrKeBDDCDTD4pPLZLI6rK+8y+nMRvERcg
HLk+qLt8QbphcLvZ7LIqUsk/Ws1zIKRkUzes/LeM67jk0snBvMkoYgZTyaRlEc4HgdJkecAmIs5N
+qxQCs2ii8TpKWoIGxE4RgcLW1oWTQT79aoGBrvgpQKMa0dc5VXGpgcSu70O3bPOCq3L68X3SrBa
Mwd6kKsAw6tJBNWXJqwGK61wwNLzMpRUKbVtAEHid33XObFjrbNtoLH76rPPOgMTDaNCi9VandS+
5dTyawapJ54tQAN3zdF9681f0GqvFmsKQWsq/dZonZfFRrlDPBfnWjYb1gZjAAd54Ndh8MB2dNRL
LXAf7bklMhdY7a90za0vq17fuqYWTa5Cfa4mKF+MO0LiCds+CtR5g7EHZkcNvF92ZKbdWqqvbaEW
7bCzHatlx1y3/ai5jdy7vV++DbvBnTd2NDUTBA==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]