Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8233941

Generated Pipeline_Use_Cycle_Mask::operator= interferes with memcpy updates

XMLWordPrintable

    • b23

        The generated class Pipeline_Use_Cycle_Mask from adlc is given a non-trivial assignment operator. That assignment operator doesn't do anything the default trivial assignment operator wouldn't do. Moreover, it leads to -Wclass-memaccess warnings with recent versions of gcc (gcc10 warns, gcc8 apparently doesn't) because there copy assignments of containing otherwise trivial class objects via memcpy.

        The generated non-trivial assignment operator should be removed.

              fweimer Florian Weimer
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: