[Bug middle-end/36008] Function produces wrong results when inlined.

2008-04-22 Thread xavier at tddft dot org
--- Comment #6 from xavier at tddft dot org 2008-04-22 22:51 --- I have managed to create a test case: Correct case: [EMAIL PROTECTED]:~$ gcc-4.3 bravais.c mathfunc.c -O3 -fno-inline bravais.c: In function ‘main’: bravais.c:83: warning: incompatible implicit declaration of built

[Bug middle-end/36008] Function produces wrong results when inlined.

2008-04-22 Thread xavier at tddft dot org
--- Comment #5 from xavier at tddft dot org 2008-04-22 22:49 --- Created an attachment (id=15514) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15514&action=view) Test case 2nd file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36008

[Bug middle-end/36008] Function produces wrong results when inlined.

2008-04-22 Thread xavier at tddft dot org
--- Comment #4 from xavier at tddft dot org 2008-04-22 22:49 --- Created an attachment (id=15513) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15513&action=view) Test case, 1st file (no includes) -- xavier at tddft dot org changed: What|

[Bug c/36008] Function produces wrong results when inlined.

2008-04-22 Thread xavier at tddft dot org
--- Comment #3 from xavier at tddft dot org 2008-04-22 17:16 --- The code comes from spglib, a library to calculate symmetry groups from crystals, so it is quite complex. The problem is that I didn't wrote it I don't understand it enough to be able to produce a small self-cont

[Bug c/36008] Function produces wrong results when inlined.

2008-04-22 Thread xavier at tddft dot org
--- Comment #1 from xavier at tddft dot org 2008-04-22 13:53 --- Created an attachment (id=15510) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15510&action=view) the code -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36008

[Bug c/36008] New: Function produces wrong results when inlined.

2008-04-22 Thread xavier at tddft dot org
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