First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 33294
Product:  
Component:  
Status: RESOLVED
Resolution: INVALID
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Serge Belyshev <belyshev@depni.sinp.msu.ru>
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 33294 depends on: Show dependency tree
Show dependency graph
Bug 33294 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2007-09-03 17:46
Compile with "-O2 -fno-strict-aliasing", fails on amd64 and alpha at least. 
Doesn't fail with -fno-tree-vrp.  Seems to be related to bug 32575.  Breaks
linux kernel in many places (this asm is used with prefetch instruction).


struct T { void *p; } *t;

int main (void)
{
  struct T *a;

  a = t;
  asm volatile ("" : : "m" (*(unsigned long *) a));
  if (a)
    __builtin_abort ();
  return 0;
}

------- Comment #1 From Serge Belyshev 2007-09-03 18:13 -------
This bug is invalid because asm() does NULL pointer dereference, thus
triggering undefined behavior.

First Last Prev Next    No search results available      Search page      Enter new bug