public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58963] Does C++ need flag_complex_method = 2?
       [not found] <bug-58963-4@http.gcc.gnu.org/bugzilla/>
@ 2013-11-08 19:12 ` congh at google dot com
  2013-11-14 18:05 ` congh at google dot com
  2013-11-14 18:21 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: congh at google dot com @ 2013-11-08 19:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Cong Hou <congh at google dot com> ---
Any comment on this topic?


thanks,
Cong


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

* [Bug c++/58963] Does C++ need flag_complex_method = 2?
       [not found] <bug-58963-4@http.gcc.gnu.org/bugzilla/>
  2013-11-08 19:12 ` [Bug c++/58963] Does C++ need flag_complex_method = 2? congh at google dot com
@ 2013-11-14 18:05 ` congh at google dot com
  2013-11-14 18:21 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: congh at google dot com @ 2013-11-14 18:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Cong Hou <congh at google dot com> ---
Suppose there is a third-party complex library, which is written in the same
way as <complex>. Then GCC could not recognize that as complex type, and will
not use builtin calls to calculate multiplication and division. 

So why there should be a difference when I use the third-party complex lib and
the standard library lib. After all, <complex> is all written in source code.
<complex> is not the same as _Complex in C99.

If we can use _Complex in C++, it is fine. But C does not have <complex>: we
won't meet the situation that building the same file t.c using gcc and g++, and
g++ is faster. gcc cannot recognize <complex>.


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

* [Bug c++/58963] Does C++ need flag_complex_method = 2?
       [not found] <bug-58963-4@http.gcc.gnu.org/bugzilla/>
  2013-11-08 19:12 ` [Bug c++/58963] Does C++ need flag_complex_method = 2? congh at google dot com
  2013-11-14 18:05 ` congh at google dot com
@ 2013-11-14 18:21 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-11-14 18:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Cong Hou from comment #3)
> Suppose there is a third-party complex library, which is written in the same
> way as <complex>. Then GCC could not recognize that as complex type, and
> will not use builtin calls to calculate multiplication and division. 
> 
> So why there should be a difference when I use the third-party complex lib
> and the standard library lib. After all, <complex> is all written in source
> code. <complex> is not the same as _Complex in C99.

This is like a third party C99 library which does not use _Complex internally
and expands the multiply themselves.  I don't see any different here.  And yes
I have seen those libraries before (most of them predate C99 too).


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

end of thread, other threads:[~2013-11-14 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-58963-4@http.gcc.gnu.org/bugzilla/>
2013-11-08 19:12 ` [Bug c++/58963] Does C++ need flag_complex_method = 2? congh at google dot com
2013-11-14 18:05 ` congh at google dot com
2013-11-14 18:21 ` pinskia at gcc dot gnu.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).