bugTiny C Compiler - Bugs: bug #31349, Preprocessor bug with...

 
 

bug #31349: Preprocessor bug with <signal.h> and `sa_handler' on x86_64-linux-gnu

Submitter:  Ludovic Courtès <civodul>
Submitted:  Sat 16 Oct 2010 11:01:17 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 19 Oct 2012 02:51:16 PM UTC, comment #1: 

This seems to have been fixed :

% printf '#include <signal.h>\n#include <assert.h>\nvoid foo (struct sigaction sa)\n{ assert (sa.sa_handler == 0); }' | tcc -c - ; echo $?
0

Thomas Preud'homme <robotux>
Group Member
Sat 16 Oct 2010 11:01:17 AM UTC, original submission:  

The following example exhibits a preprocessor bug (this is on x86_64-linux-gnu, tcc 0.9.25, glibc 2.11.1):

  printf '#include <signal.h>\n#include <assert.h>\nvoid foo (struct sigaction sa)\n{ assert (sa.sa_handler == 0); }' | tcc -c -
  stdin:4: field not found: __sigaction_handler

Glibc has this macro:

  $ grep 'define sa_handler' ~/.nix-profile/include/bits/sigaction.h
  # define sa_handler     __sigaction_handler.sa_handler

Originally reported by Bruno Haible at <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00346.html>.

Thanks,
Ludo'.

Ludovic Courtès <civodul>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by robotux (Posted a comment)
  • -email is unavailable- added by civodul (Submitted the item)
  • -email is unavailable- added by civodul
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-19 robotux StatusNone Fixed
        Open/ClosedOpen Closed
    2010-10-16 civodul Carbon-Copy- Added bruno haible <bruno@clisp.org>

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code