public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/44904]  New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
@ 2010-07-10 15:23 hubicka at gcc dot gnu dot org
  2010-07-10 15:24 ` [Bug lto/44904] " hubicka at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-07-10 15:23 UTC (permalink / raw)
  To: gcc-bugs

These seems to be last kind of warnings I can not debug in Mozilla. Might be
bogus but I don't see how.

Honza

jh@evans:/abuild/jh/mozilla-central/build10/layout/style>
/abuild/jh/trunk-install/bin/g++ -O2 -flto -r -nostdlib tc/*.ii                 
../../../layout/style/nsCSSStyleRule.cpp: In member function
?DOMCSSStyleRuleImpl* DOMCSSDeclarationImpl::DomRule()?:                        
../../../layout/style/nsCSSStyleRule.cpp:1037:53: warning: invalid access to
non-static data member ?DOMCSSStyleRuleImpl::mDOMDeclaration?  of NULL object
[-Winvalid-offsetof]                                                            
../../../layout/style/nsCSSStyleRule.cpp:1037:53: warning: (perhaps the
?offsetof? macro was used incorrectly) [-Winvalid-offsetof]                     
In file included from ../../../layout/style/nsCSSRuleProcessor.h:52:0,          
                 from ../../../layout/style/nsCSSStyleSheet.cpp:48:             
../../../layout/style/nsCSSRules.h: In member function ?nsCSSFontFaceRule*
nsCSSFontFaceStyleDecl::ContainingRule()?:                                      
../../../layout/style/nsCSSRules.h:292:77: warning: invalid access to
non-static data member ?nsCSSFontFaceRule::mDecl?  of NULL object
[-Winvalid-offsetof]           
../../../layout/style/nsCSSRules.h:292:77: warning: (perhaps the ?offsetof?
macro was used incorrectly) [-Winvalid-offsetof]                                
../../../layout/style/nsCSSRules.h: In member function ?const
nsCSSFontFaceRule* nsCSSFontFaceStyleDecl::ContainingRule() const?:             
../../../layout/style/nsCSSRules.h:299:83: warning: invalid access to
non-static data member ?nsCSSFontFaceRule::mDecl?  of NULL object
[-Winvalid-offsetof]           
../../../layout/style/nsCSSRules.h:299:83: warning: (perhaps the ?offsetof?
macro was used incorrectly) [-Winvalid-offsetof]                                
In member function ?__base_ctor ?:                                              
../../../layout/style/nsCSSStyleSheet.cpp:1001:23: warning: Use of type ?struct
nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors?
[enabled by default]                                                            
../../../layout/style/nsCSSStyleSheet.h:128:7: note: original type declared
here                                                                            
../../../layout/style/nsCSSStyleSheet.h:294:41: note: field in mismatching type
declared here                                                                   
In member function ?__base_ctor ?:                                              
../../../layout/style/nsCSSStyleSheet.cpp:981:23: warning: Use of type ?struct
nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors?
[enabled by default]                                                            
../../../layout/style/nsCSSStyleSheet.h:128:7: note: original type declared
here                                                                            
../../../layout/style/nsCSSStyleSheet.h:294:41: note: field in mismatching type
declared here                                                                   
In member function ?__base_dtor ?:                                              
../../../layout/style/nsCSSStyleSheet.cpp:1044:3: warning: Use of type ?struct
nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors?
[enabled by default]                                                            
../../../layout/style/nsCSSStyleSheet.h:128:7: note: original type declared
here                                                                            
../../../layout/style/nsCSSStyleSheet.h:294:41: note: field in mismatching type
declared here                                                                   
../../../layout/style/nsCSSStyleSheet.cpp:1046:27: warning: Use of type ?struct
nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors?
[enabled by default]                                                            
../../../layout/style/nsCSSStyleSheet.h:128:7: note: original type declared
here                                                                            
../../../layout/style/nsCSSStyleSheet.h:294:41: note: field in mismatching type
declared here


-- 
           Summary: Maybe bogus Use of type ?struct nsCSSStyleSheet? with
                    two mismatching declarations at field ?mRuleProcessors?
                    warnings in Mozilla
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hubicka at gcc dot gnu dot org
 GCC build triplet: x86_64-linux
  GCC host triplet: x86_64-linux
GCC target triplet: x86_64-linux


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


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

* [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
  2010-07-10 15:23 [Bug lto/44904] New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla hubicka at gcc dot gnu dot org
@ 2010-07-10 15:24 ` hubicka at gcc dot gnu dot org
  2010-07-11 10:58 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu dot org @ 2010-07-10 15:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hubicka at gcc dot gnu dot org  2010-07-10 15:24 -------
Created an attachment (id=21175)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21175&action=view)
testcase


-- 


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


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

* [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
  2010-07-10 15:23 [Bug lto/44904] New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla hubicka at gcc dot gnu dot org
  2010-07-10 15:24 ` [Bug lto/44904] " hubicka at gcc dot gnu dot org
@ 2010-07-11 10:58 ` rguenth at gcc dot gnu dot org
  2010-07-11 11:37 ` steven at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-11 10:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-07-11 10:58 -------
Differing array sizes of the mAutoBuf member, type decls:

 <type_decl 0x7ffff5b22a10 nsAutoTArray
    type <record_type 0x7ffff5b20c78 nsAutoTArray addressable
needs-constructing BLK
        size <integer_cst 0x7ffff5b2a078 constant 640>
        unit size <integer_cst 0x7ffff5b13ca8 constant 80>
        align 64 symtab 0 alias set -1 canonical type 0x7ffff5b20c78
        fields <field_decl 0x7ffff5b29980 D.2801 type <record_type
0x7ffff5af3a80 nsTArray>
            ignored BLK file ../../dist/include/nsTArray.h line 1036 col 7
            size <integer_cst 0x7ffff7ed37d0 constant 64>
            unit size <integer_cst 0x7ffff7ed37f8 constant 8>
            align 64 offset_align 128
            offset <integer_cst 0x7ffff7ed3438 constant 0>
            bit offset <integer_cst 0x7ffff7ed3b40 constant 0> context
<record_type 0x7ffff5b20c78 nsAutoTArray> chain <field_decl 0x7ffff5b29ab0
D.2804>>
        pointer_to_this <pointer_type 0x7ffff5b44a80>>
    public BLK file ../../dist/include/nsTArray.h line 1036 col 7
    align 8>

 <type_decl 0x7ffff5af2b80 nsAutoTArray
    type <record_type 0x7ffff5af39d8 nsAutoTArray addressable
needs-constructing BLK
        size <integer_cst 0x7ffff7ed3f50 constant 192>
        unit size <integer_cst 0x7ffff7ed3f00 constant 24>
        align 64 symtab 0 alias set -1 canonical type 0x7ffff5af39d8
        fields <field_decl 0x7ffff5af45f0 D.2104 type <record_type
0x7ffff5af3a80 nsTArray>
            ignored BLK file ../../dist/include/nsTArray.h line 1036 col 7
            size <integer_cst 0x7ffff7ed37d0 constant 64>
            unit size <integer_cst 0x7ffff7ed37f8 constant 8>
            align 64 offset_align 128
            offset <integer_cst 0x7ffff7ed3438 constant 0>
            bit offset <integer_cst 0x7ffff7ed3b40 constant 0> context
<record_type 0x7ffff5af39d8 nsAutoTArray> chain <field_decl 0x7ffff5af4720
D.2107>>
        pointer_to_this <pointer_type 0x7ffff5b3d9d8>>
    public BLK file ../../dist/include/nsTArray.h line 1036 col 7
    align 8>


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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

* [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
  2010-07-10 15:23 [Bug lto/44904] New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla hubicka at gcc dot gnu dot org
  2010-07-10 15:24 ` [Bug lto/44904] " hubicka at gcc dot gnu dot org
  2010-07-11 10:58 ` rguenth at gcc dot gnu dot org
@ 2010-07-11 11:37 ` steven at gcc dot gnu dot org
  2010-07-11 12:06   ` Jan Hubicka
  2010-07-11 11:38 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 1 reply; 9+ messages in thread
From: steven at gcc dot gnu dot org @ 2010-07-11 11:37 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from steven at gcc dot gnu dot org  2010-07-11 11:37 -------
Should this (and the other one) not be mentioned upstream somehow?


-- 


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


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

* [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
  2010-07-10 15:23 [Bug lto/44904] New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla hubicka at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-07-11 11:37 ` steven at gcc dot gnu dot org
@ 2010-07-11 11:38 ` rguenth at gcc dot gnu dot org
  2010-07-11 11:39 ` rguenth at gcc dot gnu dot org
  2010-07-11 12:07 ` hubicka at ucw dot cz
  5 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-11 11:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-07-11 11:38 -------
Seems to be bogus merging of complete/incomplete types.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


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

* [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
  2010-07-10 15:23 [Bug lto/44904] New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla hubicka at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-07-11 11:38 ` rguenth at gcc dot gnu dot org
@ 2010-07-11 11:39 ` rguenth at gcc dot gnu dot org
  2010-07-11 12:07 ` hubicka at ucw dot cz
  5 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-11 11:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-07-11 11:39 -------
(In reply to comment #3)
> Should this (and the other one) not be mentioned upstream somehow?

Honza is filing bugs with them.


-- 


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


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

* Re: [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
  2010-07-11 11:37 ` steven at gcc dot gnu dot org
@ 2010-07-11 12:06   ` Jan Hubicka
  0 siblings, 0 replies; 9+ messages in thread
From: Jan Hubicka @ 2010-07-11 12:06 UTC (permalink / raw)
  To: steven at gcc dot gnu dot org; +Cc: gcc-bugs

> Should this (and the other one) not be mentioned upstream somehow?
I filled in PRs for the ODR violations at Mozilla side already.

Honza


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

* [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
  2010-07-10 15:23 [Bug lto/44904] New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla hubicka at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2010-07-11 11:39 ` rguenth at gcc dot gnu dot org
@ 2010-07-11 12:07 ` hubicka at ucw dot cz
  5 siblings, 0 replies; 9+ messages in thread
From: hubicka at ucw dot cz @ 2010-07-11 12:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hubicka at ucw dot cz  2010-07-11 12:06 -------
Subject: Re:  Maybe bogus Use of type ?struct
        nsCSSStyleSheet? with two mismatching declarations at field
        ?mRuleProcessors? warnings in Mozilla

> Should this (and the other one) not be mentioned upstream somehow?
I filled in PRs for the ODR violations at Mozilla side already.

Honza


-- 


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


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

* [Bug lto/44904] Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla
       [not found] <bug-44904-4@http.gcc.gnu.org/bugzilla/>
@ 2011-01-08 20:08 ` hubicka at gcc dot gnu.org
  0 siblings, 0 replies; 9+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-01-08 20:08 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-08 20:02:15 UTC ---
Seems gone now.
evans:/abuild/jh/trunk-3/build-inst2/gcc/tc/tc2/:[0]#
/abuild/jh/trunk-install/bin/g++ -O2 -flto -r -nostdlib tc/*.ii
../../../layout/style/nsCSSStyleRule.cpp: In member function
'DOMCSSStyleRuleImpl* DOMCSSDeclarationImpl::DomRule()':
../../../layout/style/nsCSSStyleRule.cpp:1037:53: warning: invalid access to
non-static data member 'DOMCSSStyleRuleImpl::mDOMDeclaration'  of NULL object
[-Winvalid-offsetof]
../../../layout/style/nsCSSStyleRule.cpp:1037:53: warning: (perhaps the
'offsetof' macro was used incorrectly) [-Winvalid-offsetof]
In file included from ../../../layout/style/nsCSSRuleProcessor.h:52:0,
                 from ../../../layout/style/nsCSSStyleSheet.cpp:48:
../../../layout/style/nsCSSRules.h: In member function 'nsCSSFontFaceRule*
nsCSSFontFaceStyleDecl::ContainingRule()':
../../../layout/style/nsCSSRules.h:292:77: warning: invalid access to
non-static data member 'nsCSSFontFaceRule::mDecl'  of NULL object
[-Winvalid-offsetof]
../../../layout/style/nsCSSRules.h:292:77: warning: (perhaps the 'offsetof'
macro was used incorrectly) [-Winvalid-offsetof]
../../../layout/style/nsCSSRules.h: In member function 'const
nsCSSFontFaceRule* nsCSSFontFaceStyleDecl::ContainingRule() const':
../../../layout/style/nsCSSRules.h:299:83: warning: invalid access to
non-static data member 'nsCSSFontFaceRule::mDecl'  of NULL object
[-Winvalid-offsetof]
../../../layout/style/nsCSSRules.h:299:83: warning: (perhaps the 'offsetof'
macro was used incorrectly) [-Winvalid-offsetof]


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

end of thread, other threads:[~2011-01-08 20:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-10 15:23 [Bug lto/44904] New: Maybe bogus Use of type ?struct nsCSSStyleSheet? with two mismatching declarations at field ?mRuleProcessors? warnings in Mozilla hubicka at gcc dot gnu dot org
2010-07-10 15:24 ` [Bug lto/44904] " hubicka at gcc dot gnu dot org
2010-07-11 10:58 ` rguenth at gcc dot gnu dot org
2010-07-11 11:37 ` steven at gcc dot gnu dot org
2010-07-11 12:06   ` Jan Hubicka
2010-07-11 11:38 ` rguenth at gcc dot gnu dot org
2010-07-11 11:39 ` rguenth at gcc dot gnu dot org
2010-07-11 12:07 ` hubicka at ucw dot cz
     [not found] <bug-44904-4@http.gcc.gnu.org/bugzilla/>
2011-01-08 20:08 ` hubicka 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).