[Bug target/18798] global register variable: register is used for function calls

2004-12-03 Thread lts-rudolph at gmx dot de
--- Additional Comments From lts-rudolph at gmx dot de 2004-12-03 08:39 --- I think you are not right :-) The gcc docs say that it is possible to overwrite the abi with ffixed-reg! It is also an example given (qsort) which comes from external library. The examples says that you have

[Bug target/18798] global register variable: register is used for function calls

2004-12-03 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-03 12:51 --- But not argument passing ABI sorry. -- What|Removed |Added Status|UNCONFIRMED

[Bug target/18798] global register variable: register is used for function calls

2004-12-02 Thread pinskia at gcc dot gnu dot org
-- What|Removed |Added Component|c |target Keywords||wrong-code

[Bug target/18798] global register variable: register is used for function calls

2004-12-02 Thread lts-rudolph at gmx dot de
--- Additional Comments From lts-rudolph at gmx dot de 2004-12-02 21:12 --- Created an attachment (id=7665) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7665action=view) only one sourcefile needed, no others attatched Simply use source file with avr-gcc and look for using of

[Bug target/18798] global register variable: register is used for function calls

2004-12-02 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-02 21:26 --- I think this is invalid, does -ffixed-reg=r13 fix the problem? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18798

[Bug target/18798] global register variable: register is used for function calls

2004-12-02 Thread lts-rudolph at gmx dot de
--- Additional Comments From lts-rudolph at gmx dot de 2004-12-02 21:43 --- (In reply to comment #2) I think this is invalid, does -ffixed-reg=r13 fix the problem? No, also using ffixed-regs will result in wrong code. As I saw in source (avr.c) the register allocation for functions

[Bug target/18798] global register variable: register is used for function calls

2004-12-02 Thread rth at gcc dot gnu dot org
--- Additional Comments From rth at gcc dot gnu dot org 2004-12-02 21:50 --- Invalid. Registers 8 through 25 inclusive are all used for parameter passing. You cannot arbitrarily change the ABI simply by declaring registers as global. It's your job to pick a global register that