You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/08/29 03:37:30 UTC
[jira] Closed: (STDCXX-447) [gcc] warning: inlining failed on
std::pow (std::complex, std::complex)
[ https://issues.apache.org/jira/browse/STDCXX-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor closed STDCXX-447.
-------------------------------
Resolution: Fixed
Nightly builds are free of the warnings.
> [gcc] warning: inlining failed on std::pow (std::complex, std::complex)
> -----------------------------------------------------------------------
>
> Key: STDCXX-447
> URL: https://issues.apache.org/jira/browse/STDCXX-447
> Project: C++ Standard Library
> Issue Type: Bug
> Components: 26. Numerics
> Affects Versions: 4.1.3
> Environment: gcc 4.1.1
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Minor
> Fix For: 4.2
>
>
> The warnings below suggest that the std::pow() overfload for complex might be too big to be successfully inlined...
> gcc -c -I$(TOPDIR)/include/ansi -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include -pedantic -nostdinc++ -O2 -m32 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align $(TOPDIR)/tests/numerics/26_complex.cpp
> $(TOPDIR)/include/complex: In member function 'void RWQEComplexTest<T>::testPow() [with T = double]':
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = double]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:759: warning: called from here
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = double]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:759: warning: called from here
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = double]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:759: warning: called from here
> $(TOPDIR)/include/complex: In member function 'void RWQEComplexTest<T>::testPow() [with T = long double]':
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = long double]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:759: warning: called from here
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = long double]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:759: warning: called from here
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = long double]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:759: warning: called from here
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = long double]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:799: warning: called from here
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = long double]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:810: warning: called from here
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = long double]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:818: warning: called from here
> $(TOPDIR)/include/iosfwd: In member function 'void RWQEComplexTest<T>::testStreamOperator() [with T = long double]':
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = long double, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:508: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = long double, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:515: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = long double, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:522: warning: called from here
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd: In member function 'void RWQEComplexTest<T>::testStreamOperator() [with T = float]':
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = float, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:508: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = float, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:515: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = float, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:522: warning: called from here
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd: In member function 'void RWQEComplexTest<T>::testStreamOperator() [with T = double]':
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = double, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:508: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = double, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:515: warning: called from here
> $(TOPDIR)/include/complex:892: warning: inlining failed in call to 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::complex<_TypeT>&) [with _TypeT = double, _CharT = char, _Traits = std::char_traits<char>]': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:522: warning: called from here
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:162: warning: inlining failed in call to 'virtual std::basic_ifstream<char, std::char_traits<char> >::~basic_ifstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/iosfwd:165: warning: inlining failed in call to 'virtual std::basic_ofstream<char, std::char_traits<char> >::~basic_ofstream()': --param large-function-growth limit reached
> $(TOPDIR)/tests/numerics/26_complex.cpp:530: warning: called from here
> $(TOPDIR)/include/complex: In member function 'void RWQEComplexTest<T>::testPow() [with T = float]':
> $(TOPDIR)/include/complex:814: warning: inlining failed in call to 'std::complex<_TypeT> std::pow(const std::complex<_TypeT>&, const std::complex<_TypeT>&) [with _TypeT = float]': --param large-function-growth limit reached
> $(TOPDIR)/include/complex:759: warning: called from here
> gcc 26_complex.o -o 26_complex -L$(BUILDDIR)/rwtest -lrwtest -m32 -L$(BUILDDIR)/lib -Wl,-R$(BUILDDIR)/lib:$(BUILDDIR)/rwtest -lstd -lsupc++ -lm
> 26_complex.o: In function `RWQEComplexTest<long double>::testStreamOperator()':
> 26_complex.cpp:(.text._ZN15RWQEComplexTestIeE18testStreamOperatorEv[RWQEComplexTest<long double>::testStreamOperator()]+0x27): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.