public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/55185] New: Error generated on extern inline function which isn't called
@ 2012-11-03  1:48 hjl.tools at gmail dot com
  2012-12-04 20:55 ` [Bug middle-end/55185] " dabler at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2012-11-03  1:48 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55185
           Summary: Error generated on extern inline function which isn't
                    called
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com


On x86-64:

[hjl@gnu-tools-1 tmp]$ cat y.i
extern double strtod (const char *__restrict __nptr,
        char **__restrict __endptr);

extern __inline double
atof (const char *__nptr)
{
  return strtod (__nptr, (char **) ((void *)0));
}
[hjl@gnu-tools-1 tmp]$ gcc -S -O y.i
[hjl@gnu-tools-1 tmp]$ cat y.s
    .file    "y.i"
    .ident    "GCC: (GNU) 4.7.2 20120921 (Red Hat 4.7.2-2)"
    .section    .note.GNU-stack,"",@progbits
[hjl@gnu-tools-1 tmp]$ gcc -S -O y.i -mno-sse
y.i: In function ‘atof’:
y.i:6:1: error: SSE register return with SSE disabled
[hjl@gnu-tools-1 tmp]$


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

* [Bug middle-end/55185] Error generated on extern inline function which isn't called
  2012-11-03  1:48 [Bug middle-end/55185] New: Error generated on extern inline function which isn't called hjl.tools at gmail dot com
@ 2012-12-04 20:55 ` dabler at gmail dot com
  2013-05-12  9:28 ` markus at trippelsdorf dot de
  2013-05-12 10:12 ` markus at trippelsdorf dot de
  2 siblings, 0 replies; 4+ messages in thread
From: dabler at gmail dot com @ 2012-12-04 20:55 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from DaBler <dabler at gmail dot com> 2012-12-04 20:55:17 UTC ---
I have same problem here:

$  gcc -O3 -mno-sse -xc - <<END
> #include <stdlib.h>
> int main(){return 0;}
> END
In file included from <stdin>:1:0:
/usr/include/stdlib.h: In function ‘atof’:
/usr/include/stdlib.h:280:1: error: SSE register return with SSE disabled


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

* [Bug middle-end/55185] Error generated on extern inline function which isn't called
  2012-11-03  1:48 [Bug middle-end/55185] New: Error generated on extern inline function which isn't called hjl.tools at gmail dot com
  2012-12-04 20:55 ` [Bug middle-end/55185] " dabler at gmail dot com
@ 2013-05-12  9:28 ` markus at trippelsdorf dot de
  2013-05-12 10:12 ` markus at trippelsdorf dot de
  2 siblings, 0 replies; 4+ messages in thread
From: markus at trippelsdorf dot de @ 2013-05-12  9:28 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <markus at trippelsdorf dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markus at trippelsdorf dot de

--- Comment #2 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
Ping.

I came across this issue while debugging a python problem.
Trying to compile python with "-mno-sse -mno-sse2 -mno-sse3 -mno-sse4a"
I get during configuration:
...
/usr/include/bits/stdlib-float.h: In function 'atof':
/usr/include/bits/stdlib-float.h:27:1: error: SSE register return with SSE
disabled


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

* [Bug middle-end/55185] Error generated on extern inline function which isn't called
  2012-11-03  1:48 [Bug middle-end/55185] New: Error generated on extern inline function which isn't called hjl.tools at gmail dot com
  2012-12-04 20:55 ` [Bug middle-end/55185] " dabler at gmail dot com
  2013-05-12  9:28 ` markus at trippelsdorf dot de
@ 2013-05-12 10:12 ` markus at trippelsdorf dot de
  2 siblings, 0 replies; 4+ messages in thread
From: markus at trippelsdorf dot de @ 2013-05-12 10:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Markus Trippelsdorf <markus at trippelsdorf dot de> ---
markus@x4 ~ % cat test.i
extern double foo();
void bar() { foo(); }
markus@x4 ~ % gcc -m32 -O2 -mno-sse -c test.i
markus@x4 ~ % gcc -O2 -mno-sse -c test.i
test.i: In function ‘bar’:
test.i:2:17: error: SSE register return with SSE disabled
 void bar() { foo(); }
                 ^
markus@x4 ~ % clang -O2 -mno-sse -c test.i
markus@x4 ~ %
>From gcc-bugs-return-422101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun May 12 11:56:10 2013
Return-Path: <gcc-bugs-return-422101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 28454 invoked by alias); 12 May 2013 11:56:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 28420 invoked by uid 48); 12 May 2013 11:56:05 -0000
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/57038] Latest libreoffice compilation fails with enabled LTO
Date: Sun, 12 May 2013 11:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hubicka at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-57038-4-oLsOoh8OXl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57038-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57038-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-05/txt/msg00774.txt.bz2
Content-length: 999

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW038

--- Comment #15 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Hmm, this still does not seem helpful.
mkdir -p
/home/marxin/Programming/libreoffice/workdir/unxlngx6.pro/Dep/CxxObject/comphelper/source/property/
&& echo
"/home/marxin/Programming/libreoffice/workdir/unxlngx6.pro/CxxObject/comphelper/source/property/propagg.o
: /home/marxin/Programming/libreoffice/workdir/unxlngx6.pro/Misc/PHONY" >
/home/marxin/Programming/libreoffice/workdir/unxlngx6.pro/Dep/CxxObject/comphelper/source/property/propagg.d

is the only occurence of propagg, so apparently it was not rebuilt.  When
producing the preprocessed files, it is necessary to use exactly the same
command line as used to produce the .o (since -D, -march and other options
introduce new defines and they affect preprocessor) and then let me know the
optimization flags...

I will try to reproduce it on mozilla but that one seems to build just fine for
me. Will updat to current tree.


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

end of thread, other threads:[~2013-05-12 10:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-03  1:48 [Bug middle-end/55185] New: Error generated on extern inline function which isn't called hjl.tools at gmail dot com
2012-12-04 20:55 ` [Bug middle-end/55185] " dabler at gmail dot com
2013-05-12  9:28 ` markus at trippelsdorf dot de
2013-05-12 10:12 ` markus at trippelsdorf dot de

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