Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 26591
Product:  
Component:  
Status: RESOLVED
Resolution: DUPLICATE of bug 26004
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 26591 depends on: Show dependency tree
Show dependency graph
Bug 26591 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2006-03-07 10:36
Derived from gdb/testsuite/gdb.base/store.c : 

struct s_3 { short s[3]; } z_3, s_3;
struct s_3
add_struct_3 (struct s_3 s)
{
  int i;
  for (i = 0; i < sizeof (s) / sizeof (s.s[0]); i++)
    {
      s.s[i] = s.s[i] + s.s[i];
    }
  return s;
}


struct s_3
wack_struct_3 (void)
{
  int i; register struct s_3 u = z_3;
  for (i = 0; i < sizeof (s_3) / sizeof (s_3.s[0]); i++) { s_3.s[i] = i + 1; }
  u = add_struct_3 (u);
  return u;
}

Compiling this with arm-none-eabi-gcc gives : 

try.c: In function 'wack_struct_3':
try.c:41: error: address of register variable 'u' requested

3.4.5 and 4.0 seem to compile this ok. Its possibly related to the fix for
#18160 .

------- Comment #1 From Ramana Radhakrishnan 2006-03-07 10:49 -------
Occurs with arm-none-eabi-gcc 4.1.0 -branch with yesterday's update. 

------- Comment #2 From Andrew Pinski 2006-03-07 12:28 -------

*** This bug has been marked as a duplicate of 26004 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug