I have 3 global register variables, 1 pointer to a struct and 2 unsigned integers. Next I have 2 functions, each working on the pointer and on one of the integers. The generated output looks strange in the first place, and is dependant on the order of the two functions in the input .c file.
-- Summary: Strange global register allocation, depends on order of functions Product: gcc Version: 4.1.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ecd at brainaid dot de GCC build triplet: sparc-linux-gnu GCC host triplet: sparc-linux-gnu GCC target triplet: sparc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32874