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/03/08 02:41:24 UTC
[jira] Created: (STDCXX-349) [gcc 4.1.1] warnings compiling
iostore.cpp
[gcc 4.1.1] warnings compiling iostore.cpp
------------------------------------------
Key: STDCXX-349
URL: https://issues.apache.org/jira/browse/STDCXX-349
Project: C++ Standard Library
Issue Type: Bug
Components: Build
Affects Versions: 4.1.3, 4.1.4
Environment: gcc 4.1.1/Solaris 10
Reporter: Martin Sebor
Priority: Minor
gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -pthreads -I/amd/devco/sebor/stdcxx/include -I/build/sebor/gcc-4.1.1-12d/include -pedantic -nostdinc++ -O2 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -fPIC /amd/devco/sebor/stdcxx/src/iostore.cpp
/amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'void std::return_temporary_buffer(_TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]':
/amd/devco/sebor/stdcxx/src/iostore.cpp:144: instantiated from here
/amd/devco/sebor/stdcxx/include/rw/_rawiter.h:157: warning: dereferencing type-punned pointer will break strict-aliasing rules
/amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'std::pair<_TypeT*, _Distance> std::get_temporary_buffer(_Distance, _TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb, _Distance = int]':
/amd/devco/sebor/stdcxx/include/rw/_rawiter.h:146: instantiated from 'std::pair<_TypeT*, int> std::get_temporary_buffer(int) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]'
/amd/devco/sebor/stdcxx/src/iostore.cpp:113: instantiated from here
/amd/devco/sebor/stdcxx/include/rw/_rawiter.h:131: warning: dereferencing type-punned pointer will break strict-aliasing rules
/amd/devco/sebor/stdcxx/src/iostore.cpp: In member function 'void std::ios_base::_C_copyfmt(const std::ios_base&, void*, const void*, unsigned int)':
/amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$0' may be used uninitialized in this function
/amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$1' may be used uninitialized in this function
/amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$2' may be used uninitialized in this function
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (STDCXX-349) [gcc 4.1.1] uninitialized variable
warnings on iostore.cpp
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor closed STDCXX-349.
-------------------------------
Resolution: Fixed
Fix Version/s: 4.2
The uninitialized variable warning has cleared up in nightly builds (other warnings remain but that's a separate issue).
> [gcc 4.1.1] uninitialized variable warnings on iostore.cpp
> ----------------------------------------------------------
>
> Key: STDCXX-349
> URL: https://issues.apache.org/jira/browse/STDCXX-349
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: 4.1.3, 4.1.4
> Environment: gcc 4.1.1/Solaris 10
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Minor
> Fix For: 4.2
>
>
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -pthreads -I/amd/devco/sebor/stdcxx/include -I/build/sebor/gcc-4.1.1-12d/include -pedantic -nostdinc++ -O2 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -fPIC /amd/devco/sebor/stdcxx/src/iostore.cpp
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'void std::return_temporary_buffer(_TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]':
> /amd/devco/sebor/stdcxx/src/iostore.cpp:144: instantiated from here
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:157: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'std::pair<_TypeT*, _Distance> std::get_temporary_buffer(_Distance, _TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb, _Distance = int]':
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:146: instantiated from 'std::pair<_TypeT*, int> std::get_temporary_buffer(int) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]'
> /amd/devco/sebor/stdcxx/src/iostore.cpp:113: instantiated from here
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:131: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /amd/devco/sebor/stdcxx/src/iostore.cpp: In member function 'void std::ios_base::_C_copyfmt(const std::ios_base&, void*, const void*, unsigned int)':
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$0' may be used uninitialized in this function
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$1' may be used uninitialized in this function
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$2' may be used uninitialized in this function
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (STDCXX-349) [gcc 4.1.1] uninitialized variable
warnings on iostore.cpp
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor updated STDCXX-349:
--------------------------------
Summary: [gcc 4.1.1] uninitialized variable warnings on iostore.cpp (was: [gcc 4.1.1] warnings compiling iostore.cpp)
> [gcc 4.1.1] uninitialized variable warnings on iostore.cpp
> ----------------------------------------------------------
>
> Key: STDCXX-349
> URL: https://issues.apache.org/jira/browse/STDCXX-349
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: 4.1.4, 4.1.3
> Environment: gcc 4.1.1/Solaris 10
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Priority: Minor
>
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -pthreads -I/amd/devco/sebor/stdcxx/include -I/build/sebor/gcc-4.1.1-12d/include -pedantic -nostdinc++ -O2 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -fPIC /amd/devco/sebor/stdcxx/src/iostore.cpp
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'void std::return_temporary_buffer(_TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]':
> /amd/devco/sebor/stdcxx/src/iostore.cpp:144: instantiated from here
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:157: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'std::pair<_TypeT*, _Distance> std::get_temporary_buffer(_Distance, _TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb, _Distance = int]':
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:146: instantiated from 'std::pair<_TypeT*, int> std::get_temporary_buffer(int) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]'
> /amd/devco/sebor/stdcxx/src/iostore.cpp:113: instantiated from here
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:131: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /amd/devco/sebor/stdcxx/src/iostore.cpp: In member function 'void std::ios_base::_C_copyfmt(const std::ios_base&, void*, const void*, unsigned int)':
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$0' may be used uninitialized in this function
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$1' may be used uninitialized in this function
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$2' may be used uninitialized in this function
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (STDCXX-349) [gcc 4.1.1] warnings compiling
iostore.cpp
Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/STDCXX-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Sebor reassigned STDCXX-349:
-----------------------------------
Assignee: Martin Sebor
> [gcc 4.1.1] warnings compiling iostore.cpp
> ------------------------------------------
>
> Key: STDCXX-349
> URL: https://issues.apache.org/jira/browse/STDCXX-349
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Build
> Affects Versions: 4.1.4, 4.1.3
> Environment: gcc 4.1.1/Solaris 10
> Reporter: Martin Sebor
> Assigned To: Martin Sebor
> Priority: Minor
>
> gcc -c -I/amd/devco/sebor/stdcxx/include/ansi -pthreads -I/amd/devco/sebor/stdcxx/include -I/build/sebor/gcc-4.1.1-12d/include -pedantic -nostdinc++ -O2 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -fPIC /amd/devco/sebor/stdcxx/src/iostore.cpp
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'void std::return_temporary_buffer(_TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]':
> /amd/devco/sebor/stdcxx/src/iostore.cpp:144: instantiated from here
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:157: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h: In function 'std::pair<_TypeT*, _Distance> std::get_temporary_buffer(_Distance, _TypeT*) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb, _Distance = int]':
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:146: instantiated from 'std::pair<_TypeT*, int> std::get_temporary_buffer(int) [with _TypeT = std::ios_base::_C_usr_data::_C_event_cb]'
> /amd/devco/sebor/stdcxx/src/iostore.cpp:113: instantiated from here
> /amd/devco/sebor/stdcxx/include/rw/_rawiter.h:131: warning: dereferencing type-punned pointer will break strict-aliasing rules
> /amd/devco/sebor/stdcxx/src/iostore.cpp: In member function 'void std::ios_base::_C_copyfmt(const std::ios_base&, void*, const void*, unsigned int)':
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$0' may be used uninitialized in this function
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$1' may be used uninitialized in this function
> /amd/devco/sebor/stdcxx/src/iostore.cpp:182: warning: 'a_size$2' may be used uninitialized in this function
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.