public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35516]  New: option -masm=intel generates wrong assembly code with globals
@ 2008-03-09 18:17 21valy at gmail dot com
  2009-09-17  9:39 ` [Bug target/35516] " ubizjak at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: 21valy at gmail dot com @ 2008-03-09 18:17 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]

Hi

***********************************

unsigned long long foo=0;
int main (void)
{
  foo=0;
  return 0;
}

***********************************

valy@desktop:~/dev/C/test4$ gcc -Wall -save-temps -march=opteron  -masm=intel
test1.c -o intel_asm_sample
test1.s: Assembler messages:
test1.s:19: Error: invalid operand for 'mov' ('(' unexpected)

***********************************

valy@desktop:~/dev/C/test4$ gcc -v
Utilisation des specs internes.
libraries: x86_64-linux-gnu
Configuré avec: ../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
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-mpfr --enable-checking=release x86_64-linux-gnu
Modèle de thread: posix
version gcc 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

***********************************

Everything is OK without "-masm=intel"
Everything is OK with variable "foo" inside main()
Everything is worse when variable "foo" > 0x7fffffff: we have the same error
twice.

This gcc was released with xubuntu 7.10, I may try a newer gcc version.

Regards


-- 
           Summary: option -masm=intel generates wrong assembly code with
                    globals
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: 21valy at gmail dot com


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


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

* [Bug target/35516] option -masm=intel generates wrong assembly code with globals
  2008-03-09 18:17 [Bug c/35516] New: option -masm=intel generates wrong assembly code with globals 21valy at gmail dot com
@ 2009-09-17  9:39 ` ubizjak at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: ubizjak at gmail dot com @ 2009-09-17  9:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ubizjak at gmail dot com  2009-09-17 09:39 -------
This is fixed in 4.4.x.


-- 

ubizjak at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-09-17  9:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-09 18:17 [Bug c/35516] New: option -masm=intel generates wrong assembly code with globals 21valy at gmail dot com
2009-09-17  9:39 ` [Bug target/35516] " ubizjak at gmail dot com

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).