public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/12477] Request to add ability to disable inline/dllimport warnings
[not found] <bug-12477-7056@http.gcc.gnu.org/bugzilla/>
@ 2006-06-30 2:48 ` dannysmith at users dot sourceforge dot net
2006-08-14 2:38 ` paragw at excite dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2006-06-30 2:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from dannysmith at users dot sourceforge dot net 2006-06-30 02:42 -------
On today's trunk, your example no longer gives warnings. Instead it compiles,
then fails with:
C:\tmp>G++ -Wall -W test.cpp
c:\tmp/ccOGb2M9.o:test.cpp:(.text+0x1e): undefined reference to
_imp___ZN1TC1Ev'
c:\tmp/ccOGb2M9.o:test.cpp:(.text+0x3b): undefined reference to
`_imp___ZN1TD1Ev'
collect2: ld returned 1 exit status
OK to close?
Is that what you want
--
dannysmith at users dot sourceforge dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dannysmith at users dot
|dot org |sourceforge dot net
Status|NEW |ASSIGNED
Last reconfirmed|2005-09-30 05:37:35 |2006-06-30 02:42:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/12477] Request to add ability to disable inline/dllimport warnings
[not found] <bug-12477-7056@http.gcc.gnu.org/bugzilla/>
2006-06-30 2:48 ` [Bug target/12477] Request to add ability to disable inline/dllimport warnings dannysmith at users dot sourceforge dot net
@ 2006-08-14 2:38 ` paragw at excite dot com
2006-08-27 16:20 ` serzholino at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: paragw at excite dot com @ 2006-08-14 2:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from paragw at excite dot com 2006-08-14 02:38 -------
This happens with Qt4 Win32 as well - lot of warnings - "warning: inline
function... attribute ignored". All that's needed is a -Wno-inline-dllimport
type of flag to mingw to suppress these warnings.
Specifying dllimport to inline functions seems reasonable though - If the
compiler won't inline the function (that's just a hint) people will want to
specify dllimport to avoid linker errors, or no?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/12477] Request to add ability to disable inline/dllimport warnings
[not found] <bug-12477-7056@http.gcc.gnu.org/bugzilla/>
2006-06-30 2:48 ` [Bug target/12477] Request to add ability to disable inline/dllimport warnings dannysmith at users dot sourceforge dot net
2006-08-14 2:38 ` paragw at excite dot com
@ 2006-08-27 16:20 ` serzholino at gmail dot com
2006-08-27 21:15 ` dannysmith at users dot sourceforge dot net
2006-11-26 5:58 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 5+ messages in thread
From: serzholino at gmail dot com @ 2006-08-27 16:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from serzholino at gmail dot com 2006-08-27 16:20 -------
Confirmed with qt4 on win32
--
serzholino at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |serzholino at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/12477] Request to add ability to disable inline/dllimport warnings
[not found] <bug-12477-7056@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-08-27 16:20 ` serzholino at gmail dot com
@ 2006-08-27 21:15 ` dannysmith at users dot sourceforge dot net
2006-11-26 5:58 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 5+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2006-08-27 21:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from dannysmith at users dot sourceforge dot net 2006-08-27 21:14 -------
(In reply to comment #12)
> This happens with Qt4 Win32 as well - lot of warnings - "warning: inline
> function... attribute ignored". All that's needed is a -Wno-inline-dllimport
> type of flag to mingw to suppress these warnings.
This is current (gcc-4.2) behaviour.
What exactly is wrong with using -Wno-attributes to suppress the warnings.
Danny
========================================================================
// warn-inline-dllimport.c
__declspec (dllimport) void f1();
// inline definition (silently) overides earlier dllimport declaration
inline void f1() {}
// inline && dllimport in definition emits warning
// both can't be true.
inline __declspec (dllimport) void f2 () {}
void b()
{
f1();
f2();
}
========================================================================
compiling as:
gcc -Wall -c warn-inline-dllimport.c
produces:
warn-inline-dllimport.c:8: warning: inline function 'f2' declared as dllimport:
attribute ignored
compiling as:
gcc -Wall -Wno-attributes -c warn-inline-dllimport.c
gets rid of the attribute warning
--
dannysmith at users dot sourceforge dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/12477] Request to add ability to disable inline/dllimport warnings
[not found] <bug-12477-7056@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-08-27 21:15 ` dannysmith at users dot sourceforge dot net
@ 2006-11-26 5:58 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-26 5:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from pinskia at gcc dot gnu dot org 2006-11-26 05:58 -------
No feedback in 3 months about the -Wno-attributes option and the current
behavior of GCC so closing.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12477
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-11-26 5:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-12477-7056@http.gcc.gnu.org/bugzilla/>
2006-06-30 2:48 ` [Bug target/12477] Request to add ability to disable inline/dllimport warnings dannysmith at users dot sourceforge dot net
2006-08-14 2:38 ` paragw at excite dot com
2006-08-27 16:20 ` serzholino at gmail dot com
2006-08-27 21:15 ` dannysmith at users dot sourceforge dot net
2006-11-26 5:58 ` pinskia 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).