[LLVMbugs] [Bug 5789] New: totally empty .o file generated with -fomit-frame-pointer

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Dec 15 09:23:52 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5789

           Summary: totally empty .o file generated with -fomit-frame-
                    pointer
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu


See below.

regehr at john-home:~$ clang -Os -fomit-frame-pointer 003534.c -c
regehr at john-home:~$ objdump -d 003534.o

003534.o:     file format elf32-i386

regehr at john-home:~$ clang -v

clang version 1.1 (trunk 91411)
Target: i386-pc-linux-gnu
Thread model: posix

regehr at john-home:~$ cat 003534.c
struct __anonstruct_f1_2
{
  char *a1[10];
  char *a2;
  char strbuff[20];
};
struct __anonstruct_f2_3
{
  int *i1;
};
struct __anonstruct_NESTED_1
{
  struct __anonstruct_f1_2 f1;
  struct __anonstruct_f2_3 f2[5];
};
typedef struct __anonstruct_NESTED_1 NESTED;
int afunc (int a___0);
NESTED glob1;
int
afunc (int a___0)
{
  NESTED loc1;
  char locbuff[30];
  char indexbuff[10];

  {
    loc1.f1.a2 = glob1.f1.a2;
    return (*(loc1.f2[3].i1) + ((int) locbuff[0] - (int) indexbuff[0]));
  }
}

/* Checksum = E0526A95 */


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list