Changeset fc12f05 for driver/as.cc
- Timestamp:
- Nov 13, 2023, 3:43:43 AM (23 months ago)
- Branches:
- master
- Children:
- 25f2798
- Parents:
- 0030b508 (diff), 2174191 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/as.cc
r0030b508 rfc12f05 11 11 // Created On : Wed Aug 1 10:49:42 2018 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Wed Dec 8 07:56:12 202114 // Update Count : 1 3613 // Last Modified On : Tue Oct 24 20:45:06 2023 14 // Update Count : 159 15 15 // 16 16 … … 45 45 char * dcursor; 46 46 if ( (dcursor = strstr( start, ".Ldebug_info0:" ) ) ) { // debug information ? 47 47 // fprintf( stderr, "found .Ldebug_info0:\n" ); 48 #if defined( __i386 ) || defined( __x86_64 ) 48 49 if ( char * cursor = strstr( dcursor, ".long\t.LASF" ) ) { // language code ? 50 // fprintf( stderr, ".long\t.LASF\n" ); 51 #elif defined( __aarch64__ ) 52 if ( char * cursor = strstr( dcursor, ".4byte\t.LASF" ) ) { // language code ? 53 // fprintf( stderr, ".4byte\t.LASF\n" ); 54 #else 55 #error unsupported architecture 56 #endif 49 57 for ( int i = 0; i < 2; i += 1 ) { // move N (magic) lines forward 50 58 cursor = strstr( cursor, "\n" ) + 1; … … 55 63 if ( *(cursor - 2) == '0' && *(cursor - 1) == 'x' && 56 64 (*cursor == 'c' || *cursor == '1' || *cursor == '2') ) { // C99/C89/C 65 // fprintf( stderr, "language code C99/C89/C %c\n", *cursor ); 57 66 // Expand file by one byte to hold 2 character Cforall language code. 58 67 if ( ftruncate( fd, size + 1 ) ) { perror( "ftruncate" ); exit( EXIT_FAILURE ); }; 59 68 memmove( cursor + 2, cursor + 1, start + size - cursor - 1 ); // move remaining text 1 character right 60 69 } else if ( *(cursor - 3) == '0' && *(cursor - 2) == 'x' && *(cursor - 1) == '1' && *cursor == 'd' ) { // C11 70 // fprintf( stderr, "language code C11 %c\n", *cursor ); 61 71 } else { 62 72 for ( int i = 0; i < 6; i += 1 ) { // move N (magic) lines forward
Note:
See TracChangeset
for help on using the changeset viewer.