public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36008]  New: Function produces wrong results when inlined.
@ 2008-04-22 13:51 xavier at tddft dot org
  2008-04-22 13:53 ` [Bug c/36008] " xavier at tddft dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: xavier at tddft dot org @ 2008-04-22 13:51 UTC (permalink / raw)
  To: gcc-bugs

When the attached source file is compiled with 'gcc -O3 -c', the code that uses
it produces wrong results. The problem disappears if 'gcc -O3 -fno-inline -c'
or if the variables inside 'generate_point_symmetry' are declared as 'static'.

This is the output of gcc-4.3 -v :

Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.3/configure --prefix=/opt/gcc/ --program-suffix=-4.3
--enable-languages=c,fortran,c++ --with-arch=core2 --enable-libgomp
Thread model: posix
gcc version 4.3.1 20080419 (prerelease) (GCC) 

This is the system:

Linux corvo 2.6.24.2-corvo-001 #3 SMP PREEMPT x86_64 GNU/Linux
distribution is Debian GNU/Linux 4.0


-- 
           Summary: Function produces wrong results when inlined.
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: xavier at tddft dot org
GCC target triplet: x86_64-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2008-04-24 16:33 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-22 13:51 [Bug c/36008] New: Function produces wrong results when inlined xavier at tddft dot org
2008-04-22 13:53 ` [Bug c/36008] " xavier at tddft dot org
2008-04-22 14:14 ` aldot at gcc dot gnu dot org
2008-04-22 17:17 ` xavier at tddft dot org
2008-04-22 22:49 ` [Bug middle-end/36008] " xavier at tddft dot org
2008-04-22 22:50 ` xavier at tddft dot org
2008-04-22 22:52 ` xavier at tddft dot org
2008-04-23 10:04 ` rguenth at gcc dot gnu dot org
2008-04-23 11:02 ` [Bug rtl-optimization/36008] [4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2008-04-23 16:36 ` jakub at gcc dot gnu dot org
2008-04-23 16:54 ` jakub at gcc dot gnu dot org
2008-04-24  9:34 ` jakub at gcc dot gnu dot org
2008-04-24 10:00 ` [Bug tree-optimization/36008] " jakub at gcc dot gnu dot org
2008-04-24 11:29 ` jakub at gcc dot gnu dot org
2008-04-24 16:09 ` jakub at gcc dot gnu dot org
2008-04-24 16:20 ` jakub at gcc dot gnu dot org
2008-04-24 16:33 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).