the attached testcase compiled with -fPIC -O2 creates currrently a construct 
likes this: 
 
        movl    [EMAIL PROTECTED](%ebx), %eax 
        movl    -16(%ebp), %eax 
        xorl    (%eax), %eax 
 
So, it clobbers the register it just loaded. 
 
I tried to reduce a testcase, attached. Also .s output from my compile run is 
attached.

-- 
           Summary: stack_protector use creates broken assembler
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: marcus at jet dot franken dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22262

Reply via email to