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

 
 

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

Submitted by:  Ludovic Courtès <civodul>
Submitted on:  Sat 16 Oct 2010 11:01:17 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 19 Oct 2012 02:51:16 PM UTCrobotuxStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sat 16 Oct 2010 11:01:17 AM UTCcivodulCarbon-Copy-=>Added bruno haible

    Back to the top


    Powered by Savane 3.1-cleanup1