From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2914 invoked by alias); 24 Jul 2007 08:48:44 -0000 Received: (qmail 2899 invoked by uid 48); 24 Jul 2007 08:48:36 -0000 Date: Tue, 24 Jul 2007 08:48:00 -0000 Subject: [Bug c/32874] New: Strange global register allocation, depends on order of functions X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ecd at brainaid dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-07/txt/msg02415.txt.bz2 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