public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/53425] New: No warnings are given for -mno-sse
Date: Sun, 20 May 2012 14:18:00 -0000	[thread overview]
Message-ID: <bug-53425-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 53425
           Summary: No warnings are given for -mno-sse
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: ubizjak@gmail.com
            Target: x86-64


[hjl@gnu-mic-2 pr53383]$ cat z.c
typedef double __v2df __attribute__ ((__vector_size__ (16)));

extern __v2df x;

extern void bar (__v2df);
void
foo (void)
{
  bar (x);
}
[hjl@gnu-mic-2 pr53383]$ make z.s
/export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -mno-sse -S z.c
[hjl@gnu-mic-2 pr53383]$ cat z.s
    .file    "z.c"
    .text
    .p2align 4,,15
    .globl    foo
    .type    foo, @function
foo:
.LFB0:
    .cfi_startproc
    subq    $40, %rsp
    .cfi_def_cfa_offset 48
    movq    x(%rip), %rax
    movq    %rax, (%rsp)
    movq    x+8(%rip), %rax
    movq    %rax, 8(%rsp)
    call    bar
    addq    $40, %rsp
    .cfi_def_cfa_offset 8
    ret
    .cfi_endproc
.LFE0:
    .size    foo, .-foo
    .ident    "GCC: (GNU) 4.8.0 20120519 (experimental)"
    .section    .note.GNU-stack,"",@progbits
[hjl@gnu-mic-2 pr53383]$ 

But we do issue a warning for 32-bit:

[hjl@gnu-mic-2 pr53383]$ /export/build/gnu/gcc/build-x86_64-linux/gcc/xgcc
-B/export/build/gnu/gcc/build-x86_64-linux/gcc/ -O2 -mno-sse -S z.c -m32
z.c: In function \u2018foo\u2019:
z.c:9:7: warning: SSE vector argument without SSE enabled changes the ABI
[enabled by default]
   bar (x);
       ^
z.c:9:7: note: The ABI for passing parameters with 16-byte alignment has
changed in GCC 4.6
[hjl@gnu-mic-2 pr53383]$ 

I believe we should also issue a warning for 64-bit.


             reply	other threads:[~2012-05-20 13:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-20 14:18 hjl.tools at gmail dot com [this message]
2012-05-21 13:00 ` [Bug target/53425] " hjl at gcc dot gnu.org
2012-05-21 13:14 ` hjl.tools at gmail dot com
2012-06-14 12:37 ` jon_y at users dot sourceforge.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-53425-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).