public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29119] New: Internal compiler error while adding __asm__ statement
@ 2006-09-17 21:24 remy dot saissy at gmail dot com
2006-09-17 21:25 ` [Bug c/29119] " remy dot saissy at gmail dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: remy dot saissy at gmail dot com @ 2006-09-17 21:24 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2552 bytes --]
Hi,
I got an internal compiler error while compiling a source file.
I was not able to reproduce the bug on a smaller source file.
I only notice that the error occurs when I add an
__asm__ volatile ("movl %0,%%eax"::"m"(get_segment_base_address(*entry)));
but not at the line of this addition.
On gcc 3.x adding this statement produce a normal warning of indirectly
addressable input. (entry is an array of uint8_t[8])
Here is the output of gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)
Command line that triggers the bug:
/usr/lib/gcc/i486-linux-gnu/4.1.2/cc1 -fpreprocessed ldt.i -quiet -dumpbase
ldt.c -mtune=i686 -auxbase-strip mm/ldt.o -O2 -Wall -Wstrict-aliasing=2
-std=gnu99 -version -fomit-frame-pointer -ffreestanding -o ldt.s
GNU C version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13) (i486-linux-gnu)
compiled by GNU C version 4.1.2 20060901 (prerelease) (Debian
4.1.1-13).
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=62590
Compiler executable checksum: 87670b01f6c8def5369835011f9cd001
Compiler output:
mm/ldt.c: In function 'ldt_add_entry':
mm/ldt.c:149: internal compiler error: in bitmap_first_set_bit, at bitmap.c:535
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Preprocessed source stored into /tmp/ccgHytIr.out file, please attach this to
your bugreport.
make[1]: *** [mm/ldt.o] Error 1
make[1]: Leaving directory `/divers/work/ExAmour/kernel/src/arch/i386'
make: *** [install_exAmour] Error 2
Have a great day.
--
Rémy SAISSY
--
Summary: Internal compiler error while adding __asm__ statement
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: remy dot saissy at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/29119] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
@ 2006-09-17 21:25 ` remy dot saissy at gmail dot com
2006-09-17 21:57 ` [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: remy dot saissy at gmail dot com @ 2006-09-17 21:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from remy dot saissy at gmail dot com 2006-09-17 21:25 -------
Created an attachment (id=12287)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12287&action=view)
The .i file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
2006-09-17 21:25 ` [Bug c/29119] " remy dot saissy at gmail dot com
@ 2006-09-17 21:57 ` pinskia at gcc dot gnu dot org
2006-09-17 22:01 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-17 21:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-09-17 21:57 -------
Reduced testcase:
void ldt_add_entry(void)
{
__asm__ ("" :: "m"(({unsigned __v; __v;})));
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-09-17 21:57:22
date| |
Summary|Internal compiler error |[4.0/4.1/4.2 Regression]
|while adding __asm__ |Internal compiler error
|statement |while adding __asm__
| |statement
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
2006-09-17 21:25 ` [Bug c/29119] " remy dot saissy at gmail dot com
2006-09-17 21:57 ` [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-09-17 22:01 ` pinskia at gcc dot gnu dot org
2006-09-18 10:07 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-17 22:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-17 22:01 -------
We must had forgot to mark the variable as ADDRESSABLE.
Also this used to work with the C++ front-end in 4.1.x but now does not in
4.2.0.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (2 preceding siblings ...)
2006-09-17 22:01 ` pinskia at gcc dot gnu dot org
@ 2006-09-18 10:07 ` rguenth at gcc dot gnu dot org
2006-09-21 2:06 ` mmitchel at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-09-18 10:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2006-09-18 10:07 -------
I say this should be made invalid. In fact we already warn about it to become
invalid:
./cc1 -quiet t.c
t.c: In function 'ldt_add_entry':
t.c:3: warning: use of memory input without lvalue in asm operand 0 is
deprecated
A good opportunity to remove this from 4.2 (we warn for this since 3.3!)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (3 preceding siblings ...)
2006-09-18 10:07 ` rguenth at gcc dot gnu dot org
@ 2006-09-21 2:06 ` mmitchel at gcc dot gnu dot org
2006-10-11 11:56 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-09-21 2:06 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (4 preceding siblings ...)
2006-09-21 2:06 ` mmitchel at gcc dot gnu dot org
@ 2006-10-11 11:56 ` rguenth at gcc dot gnu dot org
2006-10-11 13:31 ` patchapp at dberlin dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-11 11:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2006-10-11 11:55 -------
Gimplification marks the TARGET_EXPR addressable in
{
__asm__ __volatile__(""::"m" TARGET_EXPR <D.1873, {
unsigned int __v;
unsigned int __v;
D.1873 = __v;
}>);
}
while it should mark the gimplified lvalue addressable.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-09-17 21:57:22 |2006-10-11 11:55:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (5 preceding siblings ...)
2006-10-11 11:56 ` rguenth at gcc dot gnu dot org
@ 2006-10-11 13:31 ` patchapp at dberlin dot org
2006-10-11 14:04 ` [Bug inline-asm/29119] [4.0/4.1 " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: patchapp at dberlin dot org @ 2006-10-11 13:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from patchapp at dberlin dot org 2006-10-11 13:31 -------
Subject: Bug number PR29119
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-10/msg00612.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (7 preceding siblings ...)
2006-10-11 14:04 ` [Bug inline-asm/29119] [4.0/4.1 " rguenth at gcc dot gnu dot org
@ 2006-10-11 14:04 ` rguenth at gcc dot gnu dot org
2006-10-16 11:25 ` [Bug inline-asm/29119] [4.0 " rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-11 14:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2006-10-11 14:03 -------
Fixed on the mainline.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 Regression] |[4.0/4.1 Regression]
|Internal compiler error |Internal compiler error
|while adding __asm__ |while adding __asm__
|statement |statement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (6 preceding siblings ...)
2006-10-11 13:31 ` patchapp at dberlin dot org
@ 2006-10-11 14:04 ` rguenth at gcc dot gnu dot org
2006-10-11 14:04 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-11 14:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2006-10-11 14:03 -------
Subject: Bug 29119
Author: rguenth
Date: Wed Oct 11 14:03:37 2006
New Revision: 117633
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117633
Log:
2006-10-11 Richard Guenther <rguenther@suse.de>
PR inline-asm/29119
* gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue
addressable.
* gcc.dg/torture/pr29119.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr29119.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0/4.1 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (9 preceding siblings ...)
2006-10-16 11:25 ` [Bug inline-asm/29119] [4.0 " rguenth at gcc dot gnu dot org
@ 2006-10-16 11:25 ` rguenth at gcc dot gnu dot org
2007-02-03 20:16 ` [Bug inline-asm/29119] [4.0 " gdr at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-16 11:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2006-10-16 11:25 -------
Subject: Bug 29119
Author: rguenth
Date: Mon Oct 16 11:25:18 2006
New Revision: 117783
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117783
Log:
2006-10-16 Richard Guenther <rguenther@suse.de>
Backport from mainline:
2006-10-10 Richard Guenther <rguenther@suse.de>
PR inline-asm/29119
* gimplify.c (gimplify_asm_expr): Mark the gimplified lvalue
addressable.
* gcc.dg/torture/pr29119.c: New testcase.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/torture/pr29119.c
- copied unchanged from r117633,
trunk/gcc/testsuite/gcc.dg/torture/pr29119.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/gimplify.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (8 preceding siblings ...)
2006-10-11 14:04 ` rguenth at gcc dot gnu dot org
@ 2006-10-16 11:25 ` rguenth at gcc dot gnu dot org
2006-10-16 11:25 ` [Bug inline-asm/29119] [4.0/4.1 " rguenth at gcc dot gnu dot org
2007-02-03 20:16 ` [Bug inline-asm/29119] [4.0 " gdr at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-10-16 11:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from rguenth at gcc dot gnu dot org 2006-10-16 11:25 -------
Fixed on the 4.1 branch.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|rguenth at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
Summary|[4.0/4.1 Regression] |[4.0 Regression] Internal
|Internal compiler error |compiler error while adding
|while adding __asm__ |__asm__ statement
|statement |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug inline-asm/29119] [4.0 Regression] Internal compiler error while adding __asm__ statement
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
` (10 preceding siblings ...)
2006-10-16 11:25 ` [Bug inline-asm/29119] [4.0/4.1 " rguenth at gcc dot gnu dot org
@ 2007-02-03 20:16 ` gdr at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from gdr at gcc dot gnu dot org 2007-02-03 20:16 -------
Fixed in GCC-4.1.2.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29119
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2007-02-03 20:16 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-17 21:24 [Bug c/29119] New: Internal compiler error while adding __asm__ statement remy dot saissy at gmail dot com
2006-09-17 21:25 ` [Bug c/29119] " remy dot saissy at gmail dot com
2006-09-17 21:57 ` [Bug inline-asm/29119] [4.0/4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-09-17 22:01 ` pinskia at gcc dot gnu dot org
2006-09-18 10:07 ` rguenth at gcc dot gnu dot org
2006-09-21 2:06 ` mmitchel at gcc dot gnu dot org
2006-10-11 11:56 ` rguenth at gcc dot gnu dot org
2006-10-11 13:31 ` patchapp at dberlin dot org
2006-10-11 14:04 ` [Bug inline-asm/29119] [4.0/4.1 " rguenth at gcc dot gnu dot org
2006-10-11 14:04 ` rguenth at gcc dot gnu dot org
2006-10-16 11:25 ` [Bug inline-asm/29119] [4.0 " rguenth at gcc dot gnu dot org
2006-10-16 11:25 ` [Bug inline-asm/29119] [4.0/4.1 " rguenth at gcc dot gnu dot org
2007-02-03 20:16 ` [Bug inline-asm/29119] [4.0 " gdr 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).