#204687 [PR 11877] gcc should use xor trick with -Os

Package:
gcc
Source:
gcc-defaults
Description:
GNU C compiler
Submitter:
Date:
2021-07-12 17:21:03 UTC
Severity:
wishlist
Tags:
#204687#5
Date:
2003-08-09 11:25:22 UTC
From:
To:
The program
#204687#16
Date:
2003-08-10 15:48:04 UTC
From:
To:
# submitted Debian report #204687 to gcc-gnats as PR 11877
# http://gcc.gnu.org/PR11877

forwarded 204687 http://gcc.gnu.org/PR11877
retitle 204687 [PR 11877] gcc should use xor trick with -Os
tags 204687 + upstream
thanks

#204687#23
Date:
2008-01-30 20:43:12 UTC
From:
To:
This bug report was submitted for an older version of gcc/g++/gcj.
Please recheck with the current gcc-4.3/g++-4.3/gcj-4.3 packages
from unstable.

#204687#26
Date:
2008-01-30 20:43:12 UTC
From:
To:
This bug report was submitted for an older version of gcc/g++/gcj.
Please recheck with the current gcc-4.3/g++-4.3/gcj-4.3 packages
from unstable.

#204687#31
Date:
2012-05-04 19:40:51 UTC
From:
To:
reassign 204687 gcc-4.6,gcc-4.7
found 204687 4.6.3-5
found 204687 4.7.0-1
stop

Hello,

Thanks for the detailed bug report and your interest in improving
Debian.  I'm just doing some cleanup, I am not involved with the GCC
package.

The bug is still present/open in the upstream bug tracker, and even if
I do not undersrand completely the issue, the central part of movl
look the same (even if re-arranged a bit) compared to the original.
--------------------------------------------------------------------------------- $ gcc -m32 test.c -Os -S -I/usr/include/x86_64-linux-gnu/ $ cat test.s .file "test.c" .text .globl foo .type foo, @function foo: .LFB0: .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 movl 8(%ebp), %edx movl 12(%ebp), %eax movl $0, (%edx) movl $0, 4(%edx) movl $0, (%eax) movl $0, 4(%eax) popl %ebp .cfi_def_cfa 4, 4 .cfi_restore 5 ret .cfi_endproc .LFE0: .size foo, .-foo .ident "GCC: (Debian 4.6.3-5) 4.6.3" .section .note.GNU-stack,"",@progbits ---------------------------------------------------------------------------------
--------------------------------------------------------------------------------- $ gcc-4.7 -m32 test.c -Os -S -I/usr/include/x86_64-linux-gnu/ $ cat test.s .file "test.c" .text .globl foo .type foo, @function foo: .LFB0: .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 movl 8(%ebp), %edx movl 12(%ebp), %eax movl $0, (%edx) movl $0, 4(%edx) movl $0, (%eax) movl $0, 4(%eax) popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE0: .size foo, .-foo .ident "GCC: (Debian 4.7.0-7) 4.7.0" .section .note.GNU-stack,"",@progbits --------------------------------------------------------------------------------- Cheers.
#204687#40
Date:
2012-05-04 19:40:51 UTC
From:
To:
reassign 204687 gcc-4.6,gcc-4.7
found 204687 4.6.3-5
found 204687 4.7.0-1
stop

Hello,

Thanks for the detailed bug report and your interest in improving
Debian.  I'm just doing some cleanup, I am not involved with the GCC
package.

The bug is still present/open in the upstream bug tracker, and even if
I do not undersrand completely the issue, the central part of movl
look the same (even if re-arranged a bit) compared to the original.
--------------------------------------------------------------------------------- $ gcc -m32 test.c -Os -S -I/usr/include/x86_64-linux-gnu/ $ cat test.s .file "test.c" .text .globl foo .type foo, @function foo: .LFB0: .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 movl 8(%ebp), %edx movl 12(%ebp), %eax movl $0, (%edx) movl $0, 4(%edx) movl $0, (%eax) movl $0, 4(%eax) popl %ebp .cfi_def_cfa 4, 4 .cfi_restore 5 ret .cfi_endproc .LFE0: .size foo, .-foo .ident "GCC: (Debian 4.6.3-5) 4.6.3" .section .note.GNU-stack,"",@progbits ---------------------------------------------------------------------------------
--------------------------------------------------------------------------------- $ gcc-4.7 -m32 test.c -Os -S -I/usr/include/x86_64-linux-gnu/ $ cat test.s .file "test.c" .text .globl foo .type foo, @function foo: .LFB0: .cfi_startproc pushl %ebp .cfi_def_cfa_offset 8 .cfi_offset 5, -8 movl %esp, %ebp .cfi_def_cfa_register 5 movl 8(%ebp), %edx movl 12(%ebp), %eax movl $0, (%edx) movl $0, 4(%edx) movl $0, (%eax) movl $0, 4(%eax) popl %ebp .cfi_restore 5 .cfi_def_cfa 4, 4 ret .cfi_endproc .LFE0: .size foo, .-foo .ident "GCC: (Debian 4.7.0-7) 4.7.0" .section .note.GNU-stack,"",@progbits --------------------------------------------------------------------------------- Cheers.
#204687#45
Date:
2015-06-23 07:24:48 UTC
From:
To:
Dear submitter,

as the package gcc-4.7 has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/789156

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Luca Falavigna (the ftpmaster behind the curtain)

#204687#58
Date:
2015-06-23 07:41:28 UTC
From:
To:
reopen 204687
reassign 204687 gcc
quit

Reopening as bug is still present.

#204687#63
Date:
2017-02-19 22:02:14 UTC
From:
To:
Dear Customer,

Your item has arrived at February 17, but our courier was not able to deliver the parcel.

You can find more details in this e-mail attachment!

Thanks and best regards,
Allan Kemp,
UPS Station Agent.