http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56258
Bruce Dubbs changed:
What|Removed |Added
CC||bdubbs at linuxfromscratch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54475
Bug #: 54475
Summary: -O2 overoptimizes
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component:
iority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bdubbs at linuxfromscratch dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.or
--- Comment #2 from bdubbs at linuxfromscratch dot org 2010-05-14 21:27
---
OK, these are my procedures:
svn co svn://gcc.gnu.org/svn/gcc/branches/gcc-4_5-branch gcc45-svn
(revision 159398)
cd gcc45-svn
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
--- Comment #5 from bdubbs at linuxfromscratch dot org 2010-05-14 22:50
---
(In reply to comment #4)
> I saw you have tried revision 159398. I guess you
> need to find which file is miscompiled.
I have no idea how to do that for the kernel.
> BTW, you aren't using gol
--- Comment #7 from bdubbs at linuxfromscratch dot org 2010-05-15 04:06
---
(In reply to comment #6)
> You build 2 kernel trees, one with gcc 4.5.1 and one
> with gcc 4.4.4. You copy binaries from one tree to
> another and rebuild kernel one file at a time until
> you fin
--- Comment #8 from bdubbs at linuxfromscratch dot org 2010-05-16 05:55
---
Created an attachment (id=20671)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20671&action=view)
Linux kernel configuration that fails with gcc-4.5
--
http://gcc.gnu.org/bugzilla/show_bug
--- Comment #9 from bdubbs at linuxfromscratch dot org 2010-05-16 06:38
---
I have traced the problem file for this bug to the kernel file
arch/x86/kernel/tsc.c
I have two source trees for the 2.6.33.4 kernel, one compiled with gcc-4.4.1
which works and gcc version 4.5.1 20100514
--- Comment #11 from bdubbs at linuxfromscratch dot org 2010-05-24 06:32
---
Updated to gcc (GCC) 4.5.1 20100524 (prerelease) but still have the problem.
There is something about -Os that triggers the kernel panic in
arch/x86/kernel/tsc.c
I tried to disable all -O2 options after -Os
--- Comment #14 from bdubbs at linuxfromscratch dot org 2010-05-31 00:41
---
(In reply to comment #13)
> (In reply to comment #12)
> > I'm assuming this is current Linus git (post 2.6.34).
>
> I'm guessing from
>
> >Tested on several kernel
--- Comment #17 from bdubbs at linuxfromscratch dot org 2010-06-19 00:05
---
I can confirm that changing inline to __always_inline in
arch/x86/include/asm/system.h fixed the panic for me.
I'm not sure if this fix is the result of an error in the kernel or gcc.
Leaving the bug ope
11 matches
Mail list logo