Skip to content
  1. Oct 16, 2008
    • Daniel Dunbar's avatar
      Teach tryEvaluate that fabs, copysign, and unary +/- are constants for · c3d79cf6
      Daniel Dunbar authored
      floats.
       - With testcase, which also has some other things GCC folds but we
         don't commented out in it.
      
      llvm-svn: 57624
      c3d79cf6
    • Daniel Dunbar's avatar
      Implement #pragma pack use in structure packing. The general approach · 4290d46b
      Daniel Dunbar authored
      is to encode the state of the #pragma pack stack as an attribute when
      the structure is declared. 
      
       - Extend PackedAttr to take an alignment (in bits), and reuse for
         both __attribute__((packed)) (which takes no argument, instead
         packing tightly (to "minimize the memory required") and for #pragma
         pack (which allows specification of the maximum alignment in
         bytes). __attribute__((packed)) is just encoded as Alignment=1.
      
         This conflates two related but different mechanisms, but it didn't
         seem worth another attribute.
      
       - I have attempted to follow the MSVC semantics as opposed to the gcc
         ones, since if I understand correctly #pragma pack originated with
         MSVC. The semantics are generally equivalent except when the stack
         is altered during the definition of a structure; its not clear if
         anyone does this in practice. See testcase if curious.
      
      llvm-svn: 57623
      4290d46b
    • Argyrios Kyrtzidis's avatar
      Issue a warning when there's an ambiguous function declarator (that could be a... · 84a4df8c
      Argyrios Kyrtzidis authored
      Issue a warning when there's an ambiguous function declarator (that could be a direct initializer for a variable defition).
      Idea originated from here: http://thread.gmane.org/gmane.comp.gcc.devel/101524
      
      llvm-svn: 57609
      84a4df8c
  2. Oct 15, 2008
  3. Oct 14, 2008
  4. Oct 13, 2008
    • Daniel Dunbar's avatar
      Lift out ABIInfo abstract base class. · d9eff3d4
      Daniel Dunbar authored
       - Currently still lives in CGCall.cpp but is intended to be the
         target specific place for hooking ABI information.
       - Select ABIInfo to use based on Target's prefix and pointer width.
      
      llvm-svn: 57445
      d9eff3d4
  5. Oct 12, 2008
  6. Oct 10, 2008
  7. Oct 09, 2008
Loading